# HG changeset patch # User Darkvater # Date 1163446531 0 # Node ID 7dea063f194e49e950f1a49c38c6cd4e8b4620e5 # Parent 6b5498f14458cf3ff709ccc3a2d0c6d508044ad9 (svn r7137) -Codechange: [win32] Use windows function in main loop to check if we have pressed ALT (for ALT+TAB) instead of magic global _pressed_key from input-loop. (KUDr) diff -r 6b5498f14458 -r 7dea063f194e video/win32_v.c --- a/video/win32_v.c Sun Nov 12 01:28:45 2006 +0000 +++ b/video/win32_v.c Mon Nov 13 19:35:31 2006 +0000 @@ -789,7 +789,7 @@ if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0) { /* Disable speeding up game with ALT+TAB (if syskey is pressed, the * real key is in the upper 16 bits (see WM_SYSKEYDOWN in WndProcGdi()) */ - if ((_pressed_key >> 16) & WKC_TAB && + if (GetAsyncKeyState(VK_MENU) >= 0 && #endif !_networking && _game_mode != GM_MENU) _fast_forward |= 2;