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

#164 revert atrox hack and use preset instead

This commit is contained in:
FunkyFr3sh 2022-09-05 10:18:26 +02:00
parent 294e8f7d34
commit dcba755d95
2 changed files with 4 additions and 10 deletions

View File

@ -374,6 +374,7 @@ static void cfg_create_ini()
"\n"
"; Atrox\n"
"[Atrox]\n"
"fixchilds=0\n"
"allow_wmactivate=true\n"
"\n"
"; Atomic Bomberman\n"

View File

@ -374,14 +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, left=%d, top=%d\n",
size.right,
size.bottom,
pos.left,
pos.top);
*/
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE)
{
@ -404,14 +404,7 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
}
else
{
if (pos.left == -92 && size.right == 100)
{
/* hack for Atrox */
}
else
{
g_ddraw->got_child_windows = g_ddraw->child_window_exists = TRUE;
}
g_ddraw->got_child_windows = g_ddraw->child_window_exists = TRUE;
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_PAINT)
{