diff options
| author | zakk <zakk@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-09 04:29:07 +0000 |
|---|---|---|
| committer | zakk <zakk@5198baeb-e213-0410-be47-fc2ff85ca46f> | 2003-01-09 04:29:07 +0000 |
| commit | 259be8a74552d136fcdfa5eea3a0abe9489dc60d (patch) | |
| tree | 050d9a3097afa4e24d6487df598ea6cfc644e6e7 /Source/GameInitDispose.cpp | |
| parent | 1bc4a0280142a0bae321b538d34f79b485ba3140 (diff) | |
| download | blackshades-259be8a74552d136fcdfa5eea3a0abe9489dc60d.tar.gz | |
fullscreen!
git-svn-id: svn://svn.icculus.org/blackshades/trunk@56 5198baeb-e213-0410-be47-fc2ff85ca46f
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 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); } |
