aboutsummaryrefslogtreecommitdiff
path: root/Source/GameInitDispose.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/GameInitDispose.cpp')
-rw-r--r--Source/GameInitDispose.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/GameInitDispose.cpp b/Source/GameInitDispose.cpp
index 3a770ea..70aed5e 100644
--- a/Source/GameInitDispose.cpp
+++ b/Source/GameInitDispose.cpp
@@ -3795,7 +3795,11 @@ int Game::InitGL(GLvoid)
SDL_GL_SetAttribute(SDL_GL_DOUBLEBUFFER, 1);
if(screenwidth<640||screenheight<480) {
+#ifdef FULLSCREEN
+ if (SDL_SetVideoMode(640, 480, 0, SDL_OPENGL | SDL_FULLSCREEN) == NULL) {
+#else
if (SDL_SetVideoMode(640, 480, 0, SDL_OPENGL) == NULL) {
+#endif
fprintf(stderr, "(OpenGL) SDL SetVideoMode failed: %s\n", SDL_GetError());
exit(EXIT_FAILURE);
}