fix contentScaleFactor on iOS
This commit is contained in:
parent
d0398f62f0
commit
90c34699d6
2 changed files with 2 additions and 2 deletions
|
@ -437,7 +437,7 @@ float DisplayServerIOS::screen_get_refresh_rate(int p_screen) const {
|
||||||
}
|
}
|
||||||
|
|
||||||
float DisplayServerIOS::screen_get_scale(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 {
|
Vector<DisplayServer::WindowID> DisplayServerIOS::get_window_list() const {
|
||||||
|
|
|
@ -151,7 +151,7 @@ static const float earth_gravity = 9.80665;
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void)godot_commonInit {
|
- (void)godot_commonInit {
|
||||||
self.contentScaleFactor = [UIScreen mainScreen].nativeScale;
|
self.contentScaleFactor = [UIScreen mainScreen].scale;
|
||||||
|
|
||||||
[self initTouches];
|
[self initTouches];
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue