diff options
author | Ludvig Strigeus | 2001-12-28 17:56:53 +0000 |
---|---|---|
committer | Ludvig Strigeus | 2001-12-28 17:56:53 +0000 |
commit | b4c2832e5f3421d7b619f98910989f53fec86ec4 (patch) | |
tree | ae5943a65a738160a8f313518ff40178410715fa | |
parent | 0355b5df912758b7c21cb4f416aa4949c51003e4 (diff) | |
download | scummvm-rg350-b4c2832e5f3421d7b619f98910989f53fec86ec4.tar.gz scummvm-rg350-b4c2832e5f3421d7b619f98910989f53fec86ec4.tar.bz2 scummvm-rg350-b4c2832e5f3421d7b619f98910989f53fec86ec4.zip |
notification if alt-enter fullscreen doesn't work
svn-id: r3536
-rw-r--r-- | sdl.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -108,7 +108,8 @@ void waitForTimer(Scumm *s, int msec_delay) { } else if (event.key.keysym.sym=='s' && event.key.keysym.mod&KMOD_CTRL) { s->resourceStats(); } else if (event.key.keysym.sym==SDLK_RETURN && event.key.keysym.mod&KMOD_ALT) { - SDL_WM_ToggleFullScreen(screen); + if(!SDL_WM_ToggleFullScreen(screen)) + warning("Full screen failed"); } #if defined(__APPLE__) @@ -471,8 +472,6 @@ int music_thread(Scumm *s) { void initGraphics(Scumm *s, bool fullScreen) { SDL_AudioSpec desired; - putenv("SDL_VIDEODRIVER=windib"); - if (SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO)==-1) { error("Could not initialize SDL: %s.\n", SDL_GetError()); exit(1); |