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

#306 support cutscene upscaling for road rash

This commit is contained in:
FunkyFr3sh 2024-04-26 01:13:50 +02:00
parent a2ef373871
commit 6ddc2ad00b
2 changed files with 13 additions and 1 deletions

View File

@ -581,7 +581,8 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
strcmp(class_name, "VideoRenderer") == 0 ||
strcmp(class_name, "MCIAVI") == 0 ||
strcmp(class_name, "AVIWnd32") == 0 ||
strcmp(class_name, "MCIWndClass") == 0)
strcmp(class_name, "MCIWndClass") == 0 ||
strcmp(class_name, "AVI Window") == 0)
{
if (g_config.fixchilds != FIX_CHILDS_DETECT_HIDE)
{

View File

@ -783,6 +783,7 @@ BOOL WINAPI fake_StretchBlt(
(hwnd == g_ddraw.hwnd ||
(g_config.fixchilds && IsChild(g_ddraw.hwnd, hwnd) &&
(g_config.fixchilds == FIX_CHILDS_DETECT_HIDE ||
strcmp(class_name, "AVI Window") == 0 ||
strcmp(class_name, "MCIAVI") == 0 ||
strcmp(class_name, "AVIWnd32") == 0 ||
strcmp(class_name, "MCIWndClass") == 0))))
@ -1301,6 +1302,16 @@ HWND WINAPI fake_CreateWindowExA(
Y = pt.y + align_y;
}
/* Road Rash movies */
if (HIWORD(lpClassName) &&
_strcmpi(lpClassName, "AVI Window") == 0 &&
g_ddraw.ref && g_ddraw.hwnd && g_ddraw.width &&
(dwStyle & WS_POPUP))
{
dwStyle = WS_CHILD;
hWndParent = g_ddraw.hwnd;
}
/* Fix for SMACKW32.DLL creating another window that steals the focus */
if (HIWORD(lpClassName) && _strcmpi(lpClassName, "MouseTypeWind") == 0 && g_ddraw.ref && g_ddraw.hwnd)
{