Update the logic to calculate the screen scale on Android
Takes into account the ratio between the screen size and the default window dimensions.
This commit is contained in:
parent
eaf306e0b1
commit
da3e380240
4 changed files with 16 additions and 4 deletions
|
|
@ -695,8 +695,8 @@ bool OS_Android::_check_internal_feature_support(const String &p_feature) {
|
|||
}
|
||||
|
||||
OS_Android::OS_Android(GodotJavaWrapper *p_godot_java, GodotIOJavaWrapper *p_godot_io_java, bool p_use_apk_expansion) {
|
||||
display_size.width = 800;
|
||||
display_size.height = 600;
|
||||
display_size.width = DEFAULT_WINDOW_WIDTH;
|
||||
display_size.height = DEFAULT_WINDOW_HEIGHT;
|
||||
|
||||
use_apk_expansion = p_use_apk_expansion;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue