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

Fix contentScaleFactor on iOS
This commit is contained in:
Rémi Verschelde 2022-12-23 23:43:32 +01:00
commit a900483802
No known key found for this signature in database
GPG Key ID: C3336907360768E1
2 changed files with 2 additions and 2 deletions

View File

@ -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 {

View File

@ -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];