mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-24 17:49:52 +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) */
|
/* let it pass through once (tiberian sun / ClueFinders) */
|
||||||
static BOOL one_time;
|
static BOOL one_time;
|
||||||
|
|
||||||
if (wParam && !one_time)
|
if (!one_time)
|
||||||
{
|
{
|
||||||
one_time = TRUE;
|
one_time = TRUE;
|
||||||
break;
|
|
||||||
|
if (wParam)
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (wParam && g_ddraw.alt_key_down && !g_config.releasealt)
|
if (wParam && g_ddraw.alt_key_down && !g_config.releasealt)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user