summaryrefslogtreecommitdiffstats
path: root/platform/android/java_godot_io_wrapper.h
diff options
context:
space:
mode:
authorFredia Huya-Kouadio <fhuyakou@gmail.com>2022-04-04 02:22:51 -0700
committerFredia Huya-Kouadio <fhuyakou@gmail.com>2022-04-04 09:23:43 -0700
commit8eabf77f5403e7d7aff770f73a9b7906b424149a (patch)
treeed83fef086d1e03b9a4c999d8cc95258665deb52 /platform/android/java_godot_io_wrapper.h
parent10d9e479491c25a350a8ed191987dd36ed43c073 (diff)
downloadredot-engine-8eabf77f5403e7d7aff770f73a9b7906b424149a.tar.gz
Update the editor display scale based on the device's scaled density
Diffstat (limited to 'platform/android/java_godot_io_wrapper.h')
-rw-r--r--platform/android/java_godot_io_wrapper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/java_godot_io_wrapper.h b/platform/android/java_godot_io_wrapper.h
index 38a2b710a9..08e3092afd 100644
--- a/platform/android/java_godot_io_wrapper.h
+++ b/platform/android/java_godot_io_wrapper.h
@@ -51,6 +51,7 @@ private:
jmethodID _get_locale = 0;
jmethodID _get_model = 0;
jmethodID _get_screen_DPI = 0;
+ jmethodID _get_scaled_density = 0;
jmethodID _get_screen_refresh_rate = 0;
jmethodID _screen_get_usable_rect = 0;
jmethodID _get_unique_id = 0;
@@ -72,6 +73,7 @@ public:
String get_locale();
String get_model();
int get_screen_dpi();
+ float get_scaled_density();
float get_screen_refresh_rate(float fallback);
void screen_get_usable_rect(int (&p_rect_xywh)[4]);
String get_unique_id();