aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudvig Strigeus2001-12-28 17:56:53 +0000
committerLudvig Strigeus2001-12-28 17:56:53 +0000
commitb4c2832e5f3421d7b619f98910989f53fec86ec4 (patch)
treeae5943a65a738160a8f313518ff40178410715fa
parent0355b5df912758b7c21cb4f416aa4949c51003e4 (diff)
downloadscummvm-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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/sdl.cpp b/sdl.cpp
index a44fcd5c9b..aecfa61b26 100644
--- a/sdl.cpp
+++ b/sdl.cpp
@@ -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);