SDL_image: Allow PNG icons and cursors even if SDL_image is built without PNG support

From f314862b4ca62988eb7731815bcc4e29277c105b Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Sun, 19 Oct 2025 23:25:16 -0700
Subject: [PATCH] Allow PNG icons and cursors even if SDL_image is built
 without PNG support

---
 src/IMG_bmp.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/IMG_bmp.c b/src/IMG_bmp.c
index 56e80cc7..9d47735b 100644
--- a/src/IMG_bmp.c
+++ b/src/IMG_bmp.c
@@ -452,7 +452,7 @@ static SDL_Surface *LoadICOCUR_IO(SDL_IOStream *src, int type, bool closeio)
         if (SDL_SeekIO(src, -4, SDL_IO_SEEK_CUR) < 0) {
             goto done;
         }
-        surface = IMG_LoadPNG_IO(src);
+        surface = SDL_LoadPNG_IO(src, false);
     } else {
         SDL_SetError("Unsupported ICO bitmap format");
     }