iOS: fix the desktop display mode's display scale property.

This commit is contained in:
Sasha Szpakowski 2023-01-29 11:37:58 -04:00 committed by Sam Lantinga
parent a67b441a10
commit 0d0a34f79f

View file

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