aboutsummaryrefslogtreecommitdiff
path: root/backends/sdl
diff options
context:
space:
mode:
authorJamieson Christian2003-10-06 00:09:26 +0000
committerJamieson Christian2003-10-06 00:09:26 +0000
commit98a16da50bcca223536f0b35e5ad45b4faa5b29a (patch)
tree57d95ca842f0c39446873ce4f21df99a7b025571 /backends/sdl
parent3463af574527c54719e9f095165141c5e3cf9087 (diff)
downloadscummvm-rg350-98a16da50bcca223536f0b35e5ad45b4faa5b29a.tar.gz
scummvm-rg350-98a16da50bcca223536f0b35e5ad45b4faa5b29a.tar.bz2
scummvm-rg350-98a16da50bcca223536f0b35e5ad45b4faa5b29a.zip
For those us who have to hit Shift to get to +
svn-id: r10624
Diffstat (limited to 'backends/sdl')
-rw-r--r--backends/sdl/sdl-common.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/backends/sdl/sdl-common.cpp b/backends/sdl/sdl-common.cpp
index 576c803b0d..7bf5c21a8b 100644
--- a/backends/sdl/sdl-common.cpp
+++ b/backends/sdl/sdl-common.cpp
@@ -642,7 +642,7 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
#endif
// Ctr-Alt-<key> will change the GFX mode
- if (b == (KBD_CTRL|KBD_ALT)) {
+ if ((b & (KBD_CTRL|KBD_ALT)) == (KBD_CTRL|KBD_ALT)) {
static const int gfxModes[][4] = {
{ GFX_NORMAL, GFX_DOUBLESIZE, GFX_TRIPLESIZE, -1 },
{ GFX_NORMAL, GFX_ADVMAME2X, GFX_ADVMAME3X, -1 },
@@ -691,8 +691,8 @@ bool OSystem_SDL_Common::poll_event(Event *event) {
// Increase/decrease the scale factor
// TODO: Shall we 'wrap around' here?
- if (ev.key.keysym.sym == '+' || ev.key.keysym.sym == '-') {
- factor += (ev.key.keysym.sym == '+' ? +1 : -1);
+ if (ev.key.keysym.sym == '=' || ev.key.keysym.sym == '+' || ev.key.keysym.sym == '-') {
+ factor += (ev.key.keysym.sym == '-' ? -1 : +1);
if (0 <= factor && factor < 4 && gfxModes[_scalerType][factor] >= 0) {
prop.gfx_mode = gfxModes[_scalerType][factor];
property(PROP_SET_GFX_MODE, &prop);