From 2684cb252561bd2aa86949e7ca7e049c4133d921 Mon Sep 17 00:00:00 2001 From: Darkvater Date: Sun, 7 Jan 2007 12:05:47 +0000 Subject: [PATCH] (svn r7947) -Backport from trunk (r7727): - [sdl] sometimes ALT-TAB could trigger the fast forward --- video/sdl_v.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/video/sdl_v.c b/video/sdl_v.c index b0a25a9d7c..11a65bda9d 100644 --- a/video/sdl_v.c +++ b/video/sdl_v.c @@ -440,7 +440,9 @@ static void SdlVideoMainLoop(void) #if defined(_DEBUG) if (_shift_pressed) #else - if (keys[SDLK_TAB]) + /* Speedup when pressing tab, except when using ALT+TAB + * to switch to another application */ + if (keys[SDLK_TAB] && (mod & KMOD_ALT) == 0) #endif { if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2;