SDL: Don't divide by the scale twice

From c45a0cd9b392ff81d53fff129bc8ed79ed7470fb Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Wed, 12 Jul 2023 15:34:10 -0700
Subject: [PATCH] Don't divide by the scale twice

It's already been done in GetUIScreenModeSize(), in the last commit
---
 src/video/uikit/SDL_uikitmodes.m | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/video/uikit/SDL_uikitmodes.m b/src/video/uikit/SDL_uikitmodes.m
index 5bcb5e6caa3f..06141034cc01 100644
--- a/src/video/uikit/SDL_uikitmodes.m
+++ b/src/video/uikit/SDL_uikitmodes.m
@@ -135,16 +135,15 @@ static int UIKit_AddSingleDisplayMode(SDL_VideoDisplay *display, int w, int h,
                                       UIScreen *uiscreen, UIScreenMode *uiscreenmode)
 {
     SDL_DisplayMode mode;
-    float scale = uiscreen.nativeScale;
 
     SDL_zero(mode);
     if (UIKit_AllocateDisplayModeData(&mode, uiscreenmode) < 0) {
         return -1;
     }
 
-    mode.w = w / scale;
-    mode.h = h / scale;
-    mode.pixel_density = scale;
+    mode.w = w;
+    mode.h = h;
+    mode.pixel_density = uiscreen.nativeScale;
     mode.refresh_rate = UIKit_GetDisplayModeRefreshRate(uiscreen);
     mode.format = SDL_PIXELFORMAT_ABGR8888;
 
@@ -189,7 +188,7 @@ static CGSize GetUIScreenModeSize(UIScreen *uiscreen, UIScreenMode *mode)
      * https://github.com/libsdl-org/SDL/issues/3220
      */
     CGSize size = mode.size;
-    
+
     size.width = SDL_round(size.width / uiscreen.scale);
     size.height = SDL_round(size.height / uiscreen.scale);