mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-05 19:08:12 +00:00
iOS: fix the desktop display mode's display scale property.
This commit is contained in:

committed by
Sam Lantinga

parent
a67b441a10
commit
0d0a34f79f
@@ -339,7 +339,7 @@ int UIKit_AddDisplay(UIScreen *uiscreen, SDL_bool send_event)
|
||||
SDL_zero(mode);
|
||||
mode.pixel_w = (int)size.width;
|
||||
mode.pixel_h = (int)size.height;
|
||||
mode.display_scale = uiscreen.scale;
|
||||
mode.display_scale = uiscreen.nativeScale;
|
||||
mode.format = SDL_PIXELFORMAT_ABGR8888;
|
||||
mode.refresh_rate = UIKit_GetDisplayModeRefreshRate(uiscreen);
|
||||
|
||||
|
Reference in New Issue
Block a user