Fix for bug #1074931 (GUI: Starting games in fullscreen doesn't work), avoid one unneccessary redraw
svn-id: r15997
This commit is contained in:
parent
3fb09f9b1c
commit
954e16abbf
1 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue