mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 14:14:47 +01:00
let WM_ACTIVATEAPP pass through once for tiberian sun + adjust presets
This commit is contained in:
parent
8ce134f6ce
commit
3c626b29b9
@ -1051,6 +1051,14 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
||||
/* C&C and RA stop drawing when they receive this with FALSE wParam, disable in windowed mode */
|
||||
if (ddraw->windowed || ddraw->noactivateapp)
|
||||
{
|
||||
// let it pass through once (tiberian sun)
|
||||
static BOOL oneTime;
|
||||
if (wParam && !oneTime)
|
||||
{
|
||||
oneTime = TRUE;
|
||||
break;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
break;
|
||||
|
@ -295,18 +295,22 @@ static void CreateSettingsIni()
|
||||
"\n"
|
||||
"; Command & Conquer: Tiberian Sun\n"
|
||||
"[game]\n"
|
||||
"noactivateapp=true\n"
|
||||
"hidemouse=false\n"
|
||||
"\n"
|
||||
"; Command & Conquer: Tiberian Sun Online\n"
|
||||
"[ts-spawn]\n"
|
||||
"noactivateapp=true\n"
|
||||
"hidemouse=false\n"
|
||||
"\n"
|
||||
"; Command & Conquer: Red Alert 2: Yuri's Revenge\n"
|
||||
"[gamemd]\n"
|
||||
"noactivateapp=true\n"
|
||||
"hidemouse=false\n"
|
||||
"\n"
|
||||
"; Command & Conquer: Red Alert 2: Yuri's Revenge Online\n"
|
||||
"[gamemd-spawn]\n"
|
||||
"noactivateapp=true\n"
|
||||
"hidemouse=false\n"
|
||||
"\n"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user