Changeset - r5076:0483cca1a3e9
[Not reviewed]
master
0 1 0
Darkvater - 18 years ago 2006-11-13 19:35:31
darkvater@openttd.org
(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)
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
video/win32_v.c
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)