1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-11 13:10:58 +00:00

Update the editor display scale based on the device's scaled density

This commit is contained in:
Fredia Huya-Kouadio
2022-04-04 02:22:51 -07:00
parent a5f9e1ce18
commit 3ba0508f79
8 changed files with 46 additions and 2 deletions

View File

@@ -472,6 +472,14 @@ int OS_Android::get_screen_dpi(int p_screen) const {
return godot_io_java->get_screen_dpi();
}
float OS_Android::get_screen_scale(int p_screen) const {
return godot_io_java->get_scaled_density();
}
float OS_Android::get_screen_max_scale() const {
return get_screen_scale();
}
float OS_Android::get_screen_refresh_rate(int p_screen) const {
return godot_io_java->get_screen_refresh_rate(OS::get_singleton()->SCREEN_REFRESH_RATE_FALLBACK);
}