From 9cc00bd6cf127e22b4428357d030d060f9d7c2d2 Mon Sep 17 00:00:00 2001 From: FunkyFr3sh Date: Tue, 4 Jun 2024 06:59:01 +0200 Subject: [PATCH] Revert "improve logging" This reverts commit 65977a8268f22809caf903c3545c46ec93cec800. --- src/utils.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/src/utils.c b/src/utils.c index f103bce..8c8072c 100644 --- a/src/utils.c +++ b/src/utils.c @@ -587,7 +587,6 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam) { IDirectDrawSurfaceImpl* this = (IDirectDrawSurfaceImpl*)lparam; - HWND parent = GetParent(hwnd); RECT size; RECT pos; @@ -602,15 +601,10 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam) LONG style = real_GetWindowLongA(hwnd, GWL_STYLE); LONG exstyle = real_GetWindowLongA(hwnd, GWL_EXSTYLE); -#ifdef _DEBUG_X - TRACE("util_enum_child_proc class=%s, hwnd=%p, width=%u, height=%u, left=%d, top=%d, parent=%p\n", - class_name, hwnd, size.right, size.bottom, pos.left, pos.top, parent); + //TRACE("util_enum_child_proc class=%s, hwnd=%p, width=%u, height=%u, left=%d, top=%d, parent=%p\n", + // class_name, hwnd, size.right, size.bottom, pos.left, pos.top, GetParent(hwnd)); - dbg_dump_wnd_styles(style, exstyle); -#endif - - if (parent != g_ddraw.hwnd) - return TRUE; + //dbg_dump_wnd_styles(style, exstyle); /* Atrox */ if (style == 0x500100C4 && strcmp(class_name, "Edit") == 0) @@ -663,7 +657,7 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam) } } - return parent == g_ddraw.hwnd ? FALSE : TRUE; + return FALSE; } static unsigned char util_get_pixel(int x, int y)