diff options
author | tron <tron@openttd.org> | 2006-09-01 10:37:27 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-09-01 10:37:27 +0000 |
commit | 3a98d0ee1d20d5ded5990f9b4a84613b1e6dfe2f (patch) | |
tree | 99c094126d579c6ab8f8acc2bf62dfb03c44e762 /video | |
parent | 463ae887ea9bed040760e3ab375ee9314c0d13a4 (diff) | |
download | openttd-3a98d0ee1d20d5ded5990f9b4a84613b1e6dfe2f.tar.xz |
(svn r6293) -Codechange: Simply use KMOD_CTRL instead of KMOD_LCTRL | KMOD_RCTRL, same for KMOD_SHIFT
Diffstat (limited to 'video')
-rw-r--r-- | video/sdl_v.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/video/sdl_v.c b/video/sdl_v.c index d70ac05d4..bd1eb5b8f 100644 --- a/video/sdl_v.c +++ b/video/sdl_v.c @@ -332,7 +332,7 @@ static int PollEvent(void) break; case SDL_MOUSEBUTTONDOWN: - if (_rightclick_emulate && (SDL_CALL SDL_GetModState() & (KMOD_LCTRL | KMOD_RCTRL))) { + if (_rightclick_emulate && SDL_CALL SDL_GetModState() & KMOD_CTRL) { ev.button.button = SDL_BUTTON_RIGHT; } @@ -473,8 +473,8 @@ static void SdlVideoMainLoop(void) if (cur_ticks == next_tick) { next_tick += 30; - _ctrl_pressed = !!(mod & (KMOD_LCTRL | KMOD_RCTRL)); - _shift_pressed = !!(mod & (KMOD_LSHIFT | KMOD_RSHIFT)); + _ctrl_pressed = !!(mod & KMOD_CTRL); + _shift_pressed = !!(mod & KMOD_SHIFT); #ifdef _DEBUG _dbg_screen_rect = !!(mod & KMOD_CAPS); #endif |