sdl12-compat: Revert "Simplified the SDL_GetWMInfo-requests-SDL2-details code."

From c336f9cdd111ae6c26e3394f53794959436a0b2d Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Thu, 8 Sep 2022 15:51:23 -0700
Subject: [PATCH] Revert "Simplified the SDL_GetWMInfo-requests-SDL2-details
 code."

This reverts commit 52459d2b8a68f77afda504da4e93887c8ed1fbd0.
---
 include/SDL/SDL_syswm.h |  2 +-
 src/SDL12_compat.c      | 10 ----------
 2 files changed, 1 insertion(+), 11 deletions(-)

diff --git a/include/SDL/SDL_syswm.h b/include/SDL/SDL_syswm.h
index 13ee52b1..b8258c29 100644
--- a/include/SDL/SDL_syswm.h
+++ b/include/SDL/SDL_syswm.h
@@ -109,7 +109,7 @@ real SDL-1.2 available to you. */
         typedef struct SDL_SysWMinfo
         {
             SDL_version version;
-            void *data;
+            int data;
         } SDL_SysWMinfo;
 
 #       include "close_code.h"
diff --git a/src/SDL12_compat.c b/src/SDL12_compat.c
index 2ce6eeb6..4710ad97 100644
--- a/src/SDL12_compat.c
+++ b/src/SDL12_compat.c
@@ -6981,16 +6981,6 @@ SDL_GetWMInfo(SDL12_SysWMinfo *info12)
     int rc;
 
     if (info12->version.major > 1) {
-        if (info12->version.major == 2) {
-#if defined(SDL_VIDEO_DRIVER_WINDOWS)
-            info12->window = (HWND)VideoWindow20;
-#elif defined(SDL_VIDEO_DRIVER_X11)
-            info12->info.x11.gfxdisplay = (Display *)VideoWindow20;
-#else
-            info12->data = (void *)VideoWindow20;
-#endif
-            return 1;
-        }
         SDL20_SetError("Requested version is unsupported");
         return 0;  /* some programs only test against 0, not -1 */
     } else if (!SupportSysWM) {