Blame SOURCES/0001-fix-SDL12COMPAT_MAX_VIDMODE.patch

db9d1c
From 77892a1ef5260fe78e593c8337dbe98874ff336c Mon Sep 17 00:00:00 2001
db9d1c
From: Ozkan Sezer <sezeroz@gmail.com>
db9d1c
Date: Tue, 25 Oct 2022 15:56:50 +0300
db9d1c
Subject: [PATCH] fix SDL12COMPAT_MAX_VIDMODE,
db9d1c
db9d1c
.. was broken by commit 7be4b3c99a436e360a43aefc929087c46cdadee9
db9d1c
---
db9d1c
 src/SDL12_compat.c | 2 ++
db9d1c
 1 file changed, 2 insertions(+)
db9d1c
db9d1c
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
db9d1c
index 64ba56f..1123cc9 100644
db9d1c
--- a/src/SDL12_compat.c
db9d1c
+++ b/src/SDL12_compat.c
db9d1c
@@ -2119,6 +2119,8 @@ Init12VidModes(void)
db9d1c
         SDL_sscanf(maxmodestr, "%ux%u", &w, &h);
db9d1c
         if (w > 0xFFFF) w = 0xFFFF;
db9d1c
         if (h > 0xFFFF) h = 0xFFFF;
db9d1c
+        maxw = w;
db9d1c
+        maxh = h;
db9d1c
     }
db9d1c
 
db9d1c
     for (i = 0; i < total; ++i) {
db9d1c
-- 
db9d1c
2.38.1
db9d1c