mirror of
https://github.com/FunkyFr3sh/cnc-ddraw.git
synced 2025-03-15 06:04:49 +01:00
#164 add hack for atrox
This commit is contained in:
parent
94a1603462
commit
e1727dc379
18
src/utils.c
18
src/utils.c
@ -374,7 +374,14 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
|
||||
|
||||
if (real_GetClientRect(hwnd, &size) && real_GetWindowRect(hwnd, &pos) && size.right > 1 && size.bottom > 1)
|
||||
{
|
||||
//TRACE(" util_enum_child_proc right=%u, bottom=%u\n", size.right, size.bottom);
|
||||
/*
|
||||
TRACE(
|
||||
" util_enum_child_proc right=%u, bottom=%u, left=%d, top=%d\n",
|
||||
size.right,
|
||||
size.bottom,
|
||||
pos.left,
|
||||
pos.top);
|
||||
*/
|
||||
|
||||
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE)
|
||||
{
|
||||
@ -397,7 +404,14 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
|
||||
}
|
||||
else
|
||||
{
|
||||
g_ddraw->got_child_windows = g_ddraw->child_window_exists = TRUE;
|
||||
if (pos.left == -92 && size.right == 100)
|
||||
{
|
||||
/* hack for Atrox */
|
||||
}
|
||||
else
|
||||
{
|
||||
g_ddraw->got_child_windows = g_ddraw->child_window_exists = TRUE;
|
||||
}
|
||||
|
||||
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_PAINT)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user