mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-05 22:04:39 +00:00
(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)
This commit is contained in:
parent
9d5befb22a
commit
21dd00b299
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user