#306 support cutscene upscaling for road rash
This commit is contained in:
parent
a2ef373871
commit
6ddc2ad00b
2 changed files with 13 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue