Fix for bug #1074931 (GUI: Starting games in fullscreen doesn't work), avoid one unneccessary redraw

svn-id: r15997
This commit is contained in:
Max Horn 2004-12-06 21:12:52 +00:00
parent 3fb09f9b1c
commit 954e16abbf

View file

@ -573,15 +573,15 @@ void OSystem_SDL::setFullscreenMode(bool enable) {
if (!SDL_WM_ToggleFullScreen(_hwscreen)) {
// if ToggleFullScreen fails, achieve the same effect with hotswap gfx mode
hotswapGFXMode();
}
#endif
} else {
// Blit everything to the screen
internUpdateScreen();
// Make sure that an EVENT_SCREEN_CHANGED gets sent later
_modeChanged = true;
}
#endif
}
}
void OSystem_SDL::setAspectRatioCorrection(bool enable) {
@ -1147,7 +1147,7 @@ void OSystem_SDL::drawMouse() {
}
void OSystem_SDL::undrawMouse() {
assert (_transactionMode == kTransactionNone);
assert (_transactionMode == kTransactionNone || _transactionMode == kTransactionCommit);
if (!_mouseDrawn)
return;