Skip to content

Commit

Permalink
Merge pull request #70478 from marius-se/fix/content_scale
Browse files Browse the repository at this point in the history
Fix contentScaleFactor on iOS
  • Loading branch information
akien-mga committed Dec 23, 2022
2 parents d005293 + 90c3469 commit a900483
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion platform/ios/display_server_ios.mm
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@
}

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 {
Expand Down
2 changes: 1 addition & 1 deletion platform/ios/godot_view.mm
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ - (void)dealloc {
}

- (void)godot_commonInit {
self.contentScaleFactor = [UIScreen mainScreen].nativeScale;
self.contentScaleFactor = [UIScreen mainScreen].scale;

[self initTouches];

Expand Down

0 comments on commit a900483

Please sign in to comment.