From 4298e79887875b487b85e08ce65ebc25fa087497 Mon Sep 17 00:00:00 2001
From: Anonymous Maarten <[EMAIL REDACTED]>
Date: Thu, 6 Oct 2022 02:55:30 +0200
Subject: [PATCH] SDL_offscreenframebuffer.c: fix format '%d' expecting int
instead of Uint32
Emitted by Nintendo 3DS's gcc (fix is same as used by ngage)
---
src/video/offscreen/SDL_offscreenframebuffer.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video/offscreen/SDL_offscreenframebuffer.c b/src/video/offscreen/SDL_offscreenframebuffer.c
index c2d99e51e60e..376058856be8 100644
--- a/src/video/offscreen/SDL_offscreenframebuffer.c
+++ b/src/video/offscreen/SDL_offscreenframebuffer.c
@@ -66,7 +66,7 @@ int SDL_OFFSCREEN_UpdateWindowFramebuffer(_THIS, SDL_Window * window, const SDL_
if (SDL_getenv("SDL_VIDEO_OFFSCREEN_SAVE_FRAMES")) {
char file[128];
SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp",
- SDL_GetWindowID(window), ++frame_number);
+ (int)SDL_GetWindowID(window), ++frame_number);
SDL_SaveBMP(surface, file);
}
return 0;