1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-01-26 03:52:01 +02:00

#1071 should be fixed.

This commit is contained in:
Michał W. Urbańczyk 2012-09-09 23:57:22 +00:00
parent d961ec0507
commit d935e87dd8

View File

@ -704,7 +704,10 @@ static void fullScreenChanged(const JsonNode &newState)
return;
}
bool bufOnScreen = (screenBuf == screen);
screen = SDL_SetVideoMode(screen->w, screen->h, bitsPerPixel, SDL_SWSURFACE|(fullscreen?SDL_FULLSCREEN:0));
screenBuf = bufOnScreen ? screen : screen2;
GH.totalRedraw();
}