Skip to content

Commit

Permalink
#164 revert atrox hack and use preset instead
Browse files Browse the repository at this point in the history
  • Loading branch information
FunkyFr3sh committed Sep 5, 2022
1 parent 294e8f7 commit dcba755
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
1 change: 1 addition & 0 deletions src/config.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 3 additions & 10 deletions src/utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand All @@ -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)
{
Expand Down

0 comments on commit dcba755

Please sign in to comment.