OPENGLSDL: Make fullscreen mode switching work again.

This commit is contained in:
Johannes Schickel 2011-09-23 19:45:44 +02:00
parent 75fb3b4ef8
commit 325addff0c

View file

@ -460,6 +460,10 @@ void OpenGLSdlGraphicsManager::toggleFullScreen(int loop) {
_activeFullscreenMode = -2;
setFullscreenMode(!isFullscreen);
}
// HACK: We need to force a refresh here, since we change the
// fullscreen mode.
_transactionDetails.needRefresh = true;
endGFXTransaction();
// Ignore resize events for the next 10 frames