[Scummvm-cvs-logs] CVS: scummvm sdl_gl.cpp,1.3,1.4

James Brown ender at users.sourceforge.net
Sat Jul 20 23:53:02 CEST 2002


Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv17970

Modified Files:
	sdl_gl.cpp 
Log Message:
Add patch from luke_br. Make GL driver honor the fullscreen flag.



Index: sdl_gl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sdl_gl.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- sdl_gl.cpp	16 Jul 2002 21:18:01 -0000	1.3
+++ sdl_gl.cpp	21 Jul 2002 06:52:04 -0000	1.4
@@ -251,6 +251,7 @@
 }
 
 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 @@
 
 	_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);
 	  





More information about the Scummvm-git-logs mailing list