Fixed screenshot with sdl
This commit is contained in:
parent
33a5c2fcdb
commit
6d37639d93
1 changed files with 4 additions and 1 deletions
|
@ -694,6 +694,10 @@ global void WaitEventsOneFrame(const EventCallback* callbacks)
|
||||||
if (!SkipGameCycle--) {
|
if (!SkipGameCycle--) {
|
||||||
SkipGameCycle = SkipFrames;
|
SkipGameCycle = SkipFrames;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef USE_OPENGL
|
||||||
|
VideoClearScreen();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -709,7 +713,6 @@ global void RealizeVideoMemory(void)
|
||||||
SDL_UpdateRects(TheScreen, NumRects, Rects);
|
SDL_UpdateRects(TheScreen, NumRects, Rects);
|
||||||
NumRects = 0;
|
NumRects = 0;
|
||||||
}
|
}
|
||||||
VideoClearScreen();
|
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue