From 6d37639d937cd101bfd0cc472b1ce696d767bb0e Mon Sep 17 00:00:00 2001 From: jsalmon3 <> Date: Sun, 23 May 2004 12:44:10 +0000 Subject: [PATCH] Fixed screenshot with sdl --- src/video/sdl.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/video/sdl.cpp b/src/video/sdl.cpp index f12ce93fe..8c97d9a76 100644 --- a/src/video/sdl.cpp +++ b/src/video/sdl.cpp @@ -694,6 +694,10 @@ global void WaitEventsOneFrame(const EventCallback* callbacks) if (!SkipGameCycle--) { SkipGameCycle = SkipFrames; } + +#ifndef USE_OPENGL + VideoClearScreen(); +#endif } /** @@ -709,7 +713,6 @@ global void RealizeVideoMemory(void) SDL_UpdateRects(TheScreen, NumRects, Rects); NumRects = 0; } - VideoClearScreen(); #endif }