sdl12-compat: Don't recreate the window on resize, even in windowed mode

From 0888ba8bd207f6edd62418150fbcbc64ecf78e3c Mon Sep 17 00:00:00 2001
From: David Gow <[EMAIL REDACTED]>
Date: Sat, 14 Aug 2021 17:58:59 +0800
Subject: [PATCH] Don't recreate the window on resize, even in windowed mode

Resizable SDL 1.2 windows are really annoying to use when the window
gets repeatedly recreated, as (at least on some window managers) this
resets the resize operation.
---
 src/SDL12_compat.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index a00d3fa..3f9cfd0 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -4324,8 +4324,6 @@ SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags12)
         EndVidModeCreate();  /* rebuild the window if moving to/from a GL context */
     } else if (VideoSurface12 && (VideoSurface12->surface20->format->format != appfmt)) {
         EndVidModeCreate();  /* rebuild the window if changing pixel format */
-    } else if (VideoSurface12 && (VideoSurface12->w != width || VideoSurface12->h != height) && ((flags12 & SDL12_FULLSCREEN) == 0)) {
-        EndVidModeCreate(); /* rebuild the window if window size changed and not in full screen */
     } else if (VideoGLContext20) {
         /* SDL 1.2 (infuriatingly!) destroys the GL context on each resize, so we will too */
         SDL20_GL_MakeCurrent(NULL, NULL);