diff options
Diffstat (limited to 'Source/GameInitDispose.cpp')
| -rw-r--r-- | Source/GameInitDispose.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp index 5784b51..fb1dac0 100644 --- a/Source/GameInitDispose.cpp +++ b/Source/GameInitDispose.cpp @@ -3804,7 +3804,11 @@ int Game::InitGL(GLvoid) exit(EXIT_FAILURE); } } else { +#ifdef FULLSCREEN if (SDL_SetVideoMode(screenwidth, screenheight, 0, SDL_OPENGL) == NULL) { +#else + if (SDL_SetVideoMode(screenwidth, screenheight, 0, SDL_OPENGL | SDL_FULLSCREEN) == NULL) { +#endif fprintf(stderr, "(OpenGL) SDL SetVideoMode failed: %s\n", SDL_GetError()); exit(EXIT_FAILURE); } |
