mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r1907) - Fix: [ 1114261 ] Speeding up when pressing ALT+TAB (Windows)
This commit is contained in:
parent
0ddbc1304b
commit
0abd611c0a
8
win32.c
8
win32.c
@ -700,11 +700,11 @@ static int Win32GdiMainLoop(void)
|
|||||||
#else
|
#else
|
||||||
if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0) {
|
if (_wnd.has_focus && GetAsyncKeyState(VK_TAB) < 0) {
|
||||||
#endif
|
#endif
|
||||||
if (!_networking && _game_mode != GM_MENU) _fast_forward |= 2;
|
/* Disable speeding up game with ALT+TAB (if syskey is pressed, the
|
||||||
} else if (_fast_forward&2) {
|
* real key is in the upper 16 bits (see WM_SYSKEYDOWN in WndProcGdi()) */
|
||||||
|
if (((_pressed_key>>16) & WKC_TAB) && !_networking && _game_mode != GM_MENU) _fast_forward |= 2;
|
||||||
|
} else if (_fast_forward & 2)
|
||||||
_fast_forward = 0;
|
_fast_forward = 0;
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
cur_ticks = GetTickCount();
|
cur_ticks = GetTickCount();
|
||||||
if ((_fast_forward && !_pause) || cur_ticks > next_tick)
|
if ((_fast_forward && !_pause) || cur_ticks > next_tick)
|
||||||
|
Loading…
Reference in New Issue
Block a user