diff options
author | Alejandro Marzini | 2010-07-27 07:30:56 +0000 |
---|---|---|
committer | Alejandro Marzini | 2010-07-27 07:30:56 +0000 |
commit | 2636ac4f36b412a8d6c62267393a19e8ba181388 (patch) | |
tree | 1b8acccc0f1310d6b2265fb421f83d10787718a3 /backends/graphics/sdl | |
parent | 591b371f2be62a8140431e9e482011c4315bc7de (diff) | |
download | scummvm-rg350-2636ac4f36b412a8d6c62267393a19e8ba181388.tar.gz scummvm-rg350-2636ac4f36b412a8d6c62267393a19e8ba181388.tar.bz2 scummvm-rg350-2636ac4f36b412a8d6c62267393a19e8ba181388.zip |
OPENGL: Implement aspect ratio support and toggling. Improve fullscreen switching. Fix cursor scaling bug.
Now the hotkey Ctrl-Alt-Enter will switch between all available fullscreen modes. Alt-Enter will only switch to the best mode available, and exit fullscreen mode if already on it.
The different aspect ratios can be switched with Ctrl-Alt-A. The normal mode will stretch the contents to the screen, while other modes will stretch only one dimension to the screen size, and maintain the aspect ratio for the other dimension.
svn-id: r51346
Diffstat (limited to 'backends/graphics/sdl')
-rw-r--r-- | backends/graphics/sdl/sdl-graphics.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/backends/graphics/sdl/sdl-graphics.cpp b/backends/graphics/sdl/sdl-graphics.cpp index c2f859a949..2d61cec185 100644 --- a/backends/graphics/sdl/sdl-graphics.cpp +++ b/backends/graphics/sdl/sdl-graphics.cpp @@ -2153,7 +2153,7 @@ bool SdlGraphicsManager::notifyEvent(const Common::Event &event) { } // Ctrl-Alt-<key> will change the GFX mode - if ((event.kbd.flags & (Common::KBD_CTRL|Common::KBD_ALT)) == (Common::KBD_CTRL|Common::KBD_ALT)) { + if (event.kbd.hasFlags(Common::KBD_CTRL|Common::KBD_ALT)) { if (handleScalerHotkeys(event.kbd.keycode)) return true; } |