1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-15 06:04:49 +01:00

add fallout 2 workaround for window not showing up in taskbar sometimes

This commit is contained in:
FunkyFr3sh 2024-08-21 10:07:57 +02:00
parent 073709dc3a
commit 57d5a9cda3

View File

@ -1602,6 +1602,14 @@ HWND WINAPI fake_CreateWindowExA(
dwStyle &= ~WS_POPUP;
}
/* Fallout 2 */
if (HIWORD(lpClassName) && _strcmpi(lpClassName, "GNW95 Class") == 0 &&
_strcmpi(lpWindowName, "FALLOUT II") == 0)
{
/* Workaround for window not showing up in taskbar sometimes */
dwExStyle |= WS_EX_APPWINDOW;
}
/* Center Claw DVD movies */
if (HIWORD(lpClassName) && _strcmpi(lpClassName, "Afx:400000:3") == 0 &&
g_ddraw.ref && g_ddraw.hwnd && hWndParent == g_ddraw.hwnd &&