Bladeren bron

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.
Sam Lantinga 8 maanden geleden
bovenliggende
commit
8a5b9559dc
1 gewijzigde bestanden met toevoegingen van 0 en 17 verwijderingen
  1. 0 17
      src/video/ngage/SDL_ngageframebuffer.cpp

+ 0 - 17
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;
 }