sdl12-compat: silenced warnings from SDL12COMPAT_MAX_VIDMODE parsing.

From 7be4b3c99a436e360a43aefc929087c46cdadee9 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Fri, 23 Sep 2022 23:00:04 +0300
Subject: [PATCH] silenced warnings from SDL12COMPAT_MAX_VIDMODE parsing.

---
 src/SDL12_compat.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index d1b69fa8..4104fa97 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -2079,10 +2079,10 @@ Init12VidModes(void)
 
     maxmodestr = SDL12Compat_GetHint("SDL12COMPAT_MAX_VIDMODE");
     if (maxmodestr) {
-        unsigned int w, h;
+        unsigned int w = 0, h = 0;
         SDL_sscanf(maxmodestr, "%ux%u", &w, &h);
-        maxw = (Uint16) SDL_clamp(w, 0, 0xFFFF);
-        maxh = (Uint16) SDL_clamp(h, 0, 0xFFFF);
+        if (w > 0xFFFF) w = 0xFFFF;
+        if (h > 0xFFFF) h = 0xFFFF;
     }
 
     for (i = 0; i < total; ++i) {