Make sure SetVideoMode() calls are same as in init.cpp.
This commit is contained in:
parent
212b03fa68
commit
d87a0fcc31
|
@ -428,7 +428,7 @@ void showOptions(SDL_Surface *optionsSurface)
|
|||
#if LINUX
|
||||
SDL_WM_ToggleFullScreen(graphics.screen);
|
||||
#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();
|
||||
flushBuffer();
|
||||
#endif
|
||||
|
@ -443,7 +443,7 @@ void showOptions(SDL_Surface *optionsSurface)
|
|||
#if LINUX
|
||||
SDL_WM_ToggleFullScreen(graphics.screen);
|
||||
#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();
|
||||
flushBuffer();
|
||||
#endif
|
||||
|
|
|
@ -414,9 +414,9 @@ int doTitle()
|
|||
SDL_WM_ToggleFullScreen(graphics.screen);
|
||||
#else
|
||||
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
|
||||
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();
|
||||
flushBuffer();
|
||||
|
|
Loading…
Reference in New Issue