From 8a5b9559dc4a16122d585dafeb2b78cf283652ac Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Sat, 3 Aug 2024 11:16:16 -0700 Subject: [PATCH] Removed the SDL_VIDEO_NGAGE_SAVE_FRAMES environment variable Display updating is now implemented, presumably we don't need to be able to dump frames for debugging. --- src/video/ngage/SDL_ngageframebuffer.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/src/video/ngage/SDL_ngageframebuffer.cpp b/src/video/ngage/SDL_ngageframebuffer.cpp index 181b914ae7..3675c54078 100644 --- a/src/video/ngage/SDL_ngageframebuffer.cpp +++ b/src/video/ngage/SDL_ngageframebuffer.cpp @@ -145,24 +145,7 @@ int SDL_NGAGE_CreateWindowFramebuffer(SDL_VideoDevice *_this, SDL_Window *window int SDL_NGAGE_UpdateWindowFramebuffer(SDL_VideoDevice *_this, SDL_Window *window, const SDL_Rect *rects, int numrects) { - static int frame_number; - SDL_Surface *surface; - - surface = (SDL_Surface *)SDL_GetWindowData(window, NGAGE_SURFACE); - if (!surface) { - return SDL_SetError("Couldn't find ngage surface for window"); - } - - /* Send the data to the display */ - if (SDL_getenv("SDL_VIDEO_NGAGE_SAVE_FRAMES")) { - char file[128]; - SDL_snprintf(file, sizeof(file), "SDL_window%d-%8.8d.bmp", - (int)SDL_GetWindowID(window), ++frame_number); - SDL_SaveBMP(surface, file); - } - DirectUpdate(_this, numrects, (SDL_Rect *)rects); - return 0; }