SDL_offscreenframebuffer.c: fix format '%d' expecting int instead of Uint32

Emitted by Nintendo 3DS's gcc (fix is same as used by ngage)
This commit is contained in:
Anonymous Maarten 2022-10-06 02:55:30 +02:00 committed by Anonymous Maarten
parent b8a4b8d1cd
commit 4298e79887
1 changed files with 1 additions and 1 deletions

View File

@ -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;