summaryrefslogtreecommitdiff
path: root/video
diff options
context:
space:
mode:
authorDarkvater <Darkvater@openttd.org>2006-11-13 19:35:31 +0000
committerDarkvater <Darkvater@openttd.org>2006-11-13 19:35:31 +0000
commit7a412adb71d513a3ac6c3063e9ac07fa9513f08a (patch)
tree41222c347b9a5e3c9ded42cc76d946e440a979da /video
parentd019abaf6b27c14f188f540d11f543ade2d85edc (diff)
downloadopenttd-7a412adb71d513a3ac6c3063e9ac07fa9513f08a.tar.xz
(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)
Diffstat (limited to 'video')
-rw-r--r--video/win32_v.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/video/win32_v.c b/video/win32_v.c
index 65e5915ff..f6ecf069c 100644
--- a/video/win32_v.c
+++ b/video/win32_v.c
@@ -789,7 +789,7 @@ static void Win32GdiMainLoop(void)
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;