[Scummvm-cvs-logs] CVS: scummvm sdl.cpp,1.28,1.29

Ludvig Strigeus strigeus at users.sourceforge.net
Fri Dec 28 09:57:06 CET 2001


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

Modified Files:
	sdl.cpp 
Log Message:
notification if alt-enter fullscreen doesn't work

Index: sdl.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sdl.cpp,v
retrieving revision 1.28
retrieving revision 1.29
diff -C2 -d -r1.28 -r1.29
*** sdl.cpp	2001/12/28 15:26:28	1.28
--- sdl.cpp	2001/12/28 17:56:53	1.29
***************
*** 109,113 ****
  					s->resourceStats();
  				} else if (event.key.keysym.sym==SDLK_RETURN && event.key.keysym.mod&KMOD_ALT) {
! 					SDL_WM_ToggleFullScreen(screen);
  				}
  
--- 109,114 ----
  					s->resourceStats();
  				} else if (event.key.keysym.sym==SDLK_RETURN && event.key.keysym.mod&KMOD_ALT) {
! 					if(!SDL_WM_ToggleFullScreen(screen))
! 						warning("Full screen failed");
  				}
  
***************
*** 471,476 ****
  void initGraphics(Scumm *s, bool fullScreen) {
  	SDL_AudioSpec desired;
- 
- 	putenv("SDL_VIDEODRIVER=windib");
  
  	if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)==-1) {
--- 472,475 ----





More information about the Scummvm-git-logs mailing list