SDL_image: fix build after latest SDL3 changes.

From c05d049f07b23d1b45796a78cdf41290565199a0 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Thu, 13 Jun 2024 05:37:00 +0300
Subject: [PATCH] fix build after latest SDL3 changes.

---
 examples/showimage.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/examples/showimage.c b/examples/showimage.c
index 8f0d6b8c..5719dd75 100644
--- a/examples/showimage.c
+++ b/examples/showimage.c
@@ -56,7 +56,8 @@ int main(int argc, char *argv[])
     SDL_Renderer *renderer = NULL;
     SDL_Texture *texture = NULL;
     Uint32 flags;
-    int i, w, h;
+    float w, h;
+    int i;
     int done = 0;
     int quit = 0;
     SDL_Event event;
@@ -165,7 +166,7 @@ int main(int argc, char *argv[])
                 continue;
             }
         }
-        SDL_QueryTexture(texture, NULL, NULL, &w, &h);
+        SDL_GetTextureSize(texture, &w, &h);
 
         /* Save the image file, if desired */
         if (saveFile) {
@@ -195,7 +196,7 @@ int main(int argc, char *argv[])
 
         /* Show the window */
         SDL_SetWindowTitle(window, argv[i]);
-        SDL_SetWindowSize(window, w, h);
+        SDL_SetWindowSize(window, (int)w, (int)h);
         SDL_ShowWindow(window);
 
         done = quit;