1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +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" "\n"
"; Atrox\n" "; Atrox\n"
"[Atrox]\n" "[Atrox]\n"
"fixchilds=0\n"
"allow_wmactivate=true\n" "allow_wmactivate=true\n"
"\n" "\n"
"; Atomic Bomberman\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) if (real_GetClientRect(hwnd, &size) && real_GetWindowRect(hwnd, &pos) && size.right > 1 && size.bottom > 1)
{ {
/* /**/
TRACE( TRACE(
" util_enum_child_proc right=%u, bottom=%u, left=%d, top=%d\n", " util_enum_child_proc right=%u, bottom=%u, left=%d, top=%d\n",
size.right, size.right,
size.bottom, size.bottom,
pos.left, pos.left,
pos.top); pos.top);
*/
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE) if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_HIDE)
{ {
@ -404,14 +404,7 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
} }
else else
{ {
if (pos.left == -92 && size.right == 100) g_ddraw->got_child_windows = g_ddraw->child_window_exists = TRUE;
{
/* hack for Atrox */
}
else
{
g_ddraw->got_child_windows = g_ddraw->child_window_exists = TRUE;
}
if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_PAINT) if (g_ddraw->fixchilds == FIX_CHILDS_DETECT_PAINT)
{ {