2
0
Эх сурвалжийг харах

Merge pull request #70478 from marius-se/fix/content_scale

Fix contentScaleFactor on iOS
Rémi Verschelde 2 жил өмнө
parent
commit
a900483802

+ 1 - 1
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 {

+ 1 - 1
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];