Make sure SetVideoMode() calls are same as in init.cpp.

This commit is contained in:
Guus Sliepen 2011-08-24 21:40:30 +02:00
parent 212b03fa68
commit d87a0fcc31
2 changed files with 4 additions and 4 deletions

View File

@ -428,7 +428,7 @@ void showOptions(SDL_Surface *optionsSurface)
#if LINUX #if LINUX
SDL_WM_ToggleFullScreen(graphics.screen); SDL_WM_ToggleFullScreen(graphics.screen);
#else #else
graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWSURFACE|SDL_HWPALETTE|SDL_FULLSCREEN); graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWPALETTE|SDL_FULLSCREEN);
graphics.drawBackground(); graphics.drawBackground();
flushBuffer(); flushBuffer();
#endif #endif
@ -443,7 +443,7 @@ void showOptions(SDL_Surface *optionsSurface)
#if LINUX #if LINUX
SDL_WM_ToggleFullScreen(graphics.screen); SDL_WM_ToggleFullScreen(graphics.screen);
#else #else
graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWSURFACE|SDL_HWPALETTE); graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWPALETTE);
graphics.drawBackground(); graphics.drawBackground();
flushBuffer(); flushBuffer();
#endif #endif

View File

@ -414,9 +414,9 @@ int doTitle()
SDL_WM_ToggleFullScreen(graphics.screen); SDL_WM_ToggleFullScreen(graphics.screen);
#else #else
if (currentGame.fullScreen) if (currentGame.fullScreen)
graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWSURFACE|SDL_HWPALETTE|SDL_FULLSCREEN); graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWPALETTE|SDL_FULLSCREEN);
else else
graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWSURFACE|SDL_HWPALETTE); graphics.screen = SDL_SetVideoMode(800, 600, 0, SDL_DOUBLEBUF|SDL_HWPALETTE);
graphics.drawBackground(); graphics.drawBackground();
flushBuffer(); flushBuffer();