aboutsummaryrefslogtreecommitdiff
path: root/Source/GameInitDispose.cpp
diff options
context:
space:
mode:
authorrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-09 07:18:49 +0000
committerrelnev <relnev@5198baeb-e213-0410-be47-fc2ff85ca46f>2003-01-09 07:18:49 +0000
commitba6ee5ce2bbc7d4cf0b6cf6e9aeb0d1b47301bc6 (patch)
treeb50eb4917655d8ff1fdeb1b627e6d25c7a850eba /Source/GameInitDispose.cpp
parenta7b68b73f846a27477b97bfb747c2e7f8857fc6c (diff)
downloadblackshades-ba6ee5ce2bbc7d4cf0b6cf6e9aeb0d1b47301bc6.tar.gz
add another case for fs hack
git-svn-id: svn://svn.icculus.org/blackshades/trunk@65 5198baeb-e213-0410-be47-fc2ff85ca46f
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 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);
}