aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2002-07-21 06:52:04 +0000
committerJames Brown2002-07-21 06:52:04 +0000
commit7a418b540d2bac3445774249bcc84d034f0e1c36 (patch)
treecab5f301d293558d6871d65b91c82e8a3b2eefc4
parent0f4b49300d42fe58acc4da9077da8d548e5e6159 (diff)
downloadscummvm-rg350-7a418b540d2bac3445774249bcc84d034f0e1c36.tar.gz
scummvm-rg350-7a418b540d2bac3445774249bcc84d034f0e1c36.tar.bz2
scummvm-rg350-7a418b540d2bac3445774249bcc84d034f0e1c36.zip
Add patch from luke_br. Make GL driver honor the fullscreen flag.
svn-id: r4610
-rw-r--r--sdl_gl.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/sdl_gl.cpp b/sdl_gl.cpp
index f44c01d4e0..cb4905972c 100644
--- a/sdl_gl.cpp
+++ b/sdl_gl.cpp
@@ -251,6 +251,7 @@ void OSystem_SDL::set_palette(const byte *colors, uint start, uint num) {
}
void OSystem_SDL::load_gfx_mode() {
+ int gl_flags = FB2GL_320 | FB2GL_PITCH;
force_full = true;
scaling = 1;
_mode_flags = 0;
@@ -269,11 +270,13 @@ void OSystem_SDL::load_gfx_mode() {
_mode_flags = DF_WANT_RECT_OPTIM | DF_REAL_8BIT;
+ if (_full_screen) gl_flags |= (FB2GL_FS);
+
#ifdef OGL_1_1
- fb2gl_init(640,480,0,70, FB2GL_FS | FB2GL_320 | FB2GL_PITCH | FB2GL_RGBA | FB2GL_EXPAND);
- #else
- fb2gl_init(640,480,0,70, FB2GL_FS | FB2GL_320 | FB2GL_PITCH);
+ gl_flags |= (FB2GL_RGBA | FB2GL_EXPAND);
#endif
+
+ fb2gl_init(640,480,0,70,gl_flags);
SDL_SetGamma(1.25,1.25,1.25);