From 0d0a34f79fedc4d50bb70cc5fa928b94352277d8 Mon Sep 17 00:00:00 2001 From: Sasha Szpakowski Date: Sun, 29 Jan 2023 11:37:58 -0400 Subject: [PATCH] iOS: fix the desktop display mode's display scale property. --- src/video/uikit/SDL_uikitmodes.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/uikit/SDL_uikitmodes.m b/src/video/uikit/SDL_uikitmodes.m index 896b747f1..f4af6f063 100644 --- a/src/video/uikit/SDL_uikitmodes.m +++ b/src/video/uikit/SDL_uikitmodes.m @@ -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);