summaryrefslogtreecommitdiff
path: root/platform/ios
diff options
context:
space:
mode:
authorMarius Seufzer <marius.seufzer@protonmail.com>2022-12-23 14:57:56 +0100
committerMarius Seufzer <marius.seufzer@protonmail.com>2022-12-23 14:57:56 +0100
commit90c34699d628eaddb9ebd7d44fff59f650372fd9 (patch)
tree64c70950b844ba5ff71f97d6b1b5e17f3263692d /platform/ios
parentd0398f62f08ce0cfba80990b21c6af4181f93fe9 (diff)
fix contentScaleFactor on iOS
Diffstat (limited to 'platform/ios')
-rw-r--r--platform/ios/display_server_ios.mm2
-rw-r--r--platform/ios/godot_view.mm2
2 files changed, 2 insertions, 2 deletions
diff --git a/platform/ios/display_server_ios.mm b/platform/ios/display_server_ios.mm
index 3f4a406116..ce78b8d20f 100644
--- a/platform/ios/display_server_ios.mm
+++ b/platform/ios/display_server_ios.mm
@@ -437,7 +437,7 @@ float DisplayServerIOS::screen_get_refresh_rate(int p_screen) const {
}
float DisplayServerIOS::screen_get_scale(int p_screen) const {
- return [UIScreen mainScreen].nativeScale;
+ return [UIScreen mainScreen].scale;
}
Vector<DisplayServer::WindowID> DisplayServerIOS::get_window_list() const {
diff --git a/platform/ios/godot_view.mm b/platform/ios/godot_view.mm
index 4537dc2985..19cb914521 100644
--- a/platform/ios/godot_view.mm
+++ b/platform/ios/godot_view.mm
@@ -151,7 +151,7 @@ static const float earth_gravity = 9.80665;
}
- (void)godot_commonInit {
- self.contentScaleFactor = [UIScreen mainScreen].nativeScale;
+ self.contentScaleFactor = [UIScreen mainScreen].scale;
[self initTouches];