diff options
author | Max Horn | 2004-07-31 11:32:25 +0000 |
---|---|---|
committer | Max Horn | 2004-07-31 11:32:25 +0000 |
commit | 76bfd1f92925bc708bec2b970a7e0b1b1a6668d8 (patch) | |
tree | 6db5a1e08433e76ae7a79aaa3e669a5a0855039c | |
parent | 4f0f6abdd519b3313972507b1bf93a8c5ef44b68 (diff) | |
download | scummvm-rg350-76bfd1f92925bc708bec2b970a7e0b1b1a6668d8.tar.gz scummvm-rg350-76bfd1f92925bc708bec2b970a7e0b1b1a6668d8.tar.bz2 scummvm-rg350-76bfd1f92925bc708bec2b970a7e0b1b1a6668d8.zip |
Allow Alt-Enter to toggle fullscreen mode, just like Alt-Return, matching our README (see also bug #1001126)
svn-id: r14382
-rw-r--r-- | backends/sdl/events.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/backends/sdl/events.cpp b/backends/sdl/events.cpp index d1ed7503fd..e017b2dc77 100644 --- a/backends/sdl/events.cpp +++ b/backends/sdl/events.cpp @@ -190,8 +190,9 @@ bool OSystem_SDL::poll_event(Event *event) { #endif event->kbd.flags = b; - // Alt-Return toggles full screen mode - if (b == KBD_ALT && ev.key.keysym.sym == SDLK_RETURN) { + // Alt-Return and Alt-Enter toggle full screen mode + if (b == KBD_ALT && (ev.key.keysym.sym == SDLK_RETURN + || ev.key.keysym.sym == SDLK_KP_ENTER)) { setFullscreenMode(!_full_screen); #ifdef USE_OSD if (_full_screen) |