mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
make sure we only let the first WM_ACTIVATEAPP pass through
This commit is contained in:
parent
4df9dfc654
commit
0246dd44e9
@ -671,10 +671,12 @@ LRESULT CALLBACK fake_WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam
|
||||
/* let it pass through once (tiberian sun / ClueFinders) */
|
||||
static BOOL one_time;
|
||||
|
||||
if (wParam && !one_time)
|
||||
if (!one_time)
|
||||
{
|
||||
one_time = TRUE;
|
||||
break;
|
||||
|
||||
if (wParam)
|
||||
break;
|
||||
}
|
||||
|
||||
if (wParam && g_ddraw.alt_key_down && !g_config.releasealt)
|
||||
|
Loading…
x
Reference in New Issue
Block a user