SDL: cocoa: Remove resize hack when changing the window backing scale

From 4eae38580f0344eef7f80ed7fbc00ec260ea08a4 Mon Sep 17 00:00:00 2001
From: Frank Praznik <[EMAIL REDACTED]>
Date: Wed, 14 Feb 2024 17:21:09 -0500
Subject: [PATCH] cocoa: Remove resize hack when changing the window backing
 scale Zeroing the window width and height was necessary in SDL2 to
 short-circuit the resize event deduplication code when the window backing
 scale changed, but not the logical size. This is no longer necessary in SDL3,
 as it will explicitly check for scale changes on resize events and dispatch
 pixel size/scale changed events as appropriate, even if the window's logical
 size hasn't changed.

---
 src/video/cocoa/SDL_cocoawindow.m | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/video/cocoa/SDL_cocoawindow.m b/src/video/cocoa/SDL_cocoawindow.m
index df1e39221a7a..e4466486323f 100644
--- a/src/video/cocoa/SDL_cocoawindow.m
+++ b/src/video/cocoa/SDL_cocoawindow.m
@@ -1139,9 +1139,7 @@ - (void)windowDidChangeBackingProperties:(NSNotification *)aNotification
     }
 
     if ([oldscale doubleValue] != [_data.nswindow backingScaleFactor]) {
-        /* Force a resize event when the backing scale factor changes. */
-        _data.window->w = 0;
-        _data.window->h = 0;
+        /* Send a resize event when the backing scale factor changes. */
         [self windowDidResize:aNotification];
     }
 }