1
0
mirror of https://github.com/FunkyFr3sh/cnc-ddraw.git synced 2025-03-24 17:49:52 +01:00

Revert "improve logging"

This reverts commit 65977a8268f22809caf903c3545c46ec93cec800.
This commit is contained in:
FunkyFr3sh 2024-06-04 06:59:01 +02:00
parent 65977a8268
commit 9cc00bd6cf

View File

@ -587,7 +587,6 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
{ {
IDirectDrawSurfaceImpl* this = (IDirectDrawSurfaceImpl*)lparam; IDirectDrawSurfaceImpl* this = (IDirectDrawSurfaceImpl*)lparam;
HWND parent = GetParent(hwnd);
RECT size; RECT size;
RECT pos; RECT pos;
@ -602,15 +601,10 @@ BOOL CALLBACK util_enum_child_proc(HWND hwnd, LPARAM lparam)
LONG style = real_GetWindowLongA(hwnd, GWL_STYLE); LONG style = real_GetWindowLongA(hwnd, GWL_STYLE);
LONG exstyle = real_GetWindowLongA(hwnd, GWL_EXSTYLE); 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",
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));
class_name, hwnd, size.right, size.bottom, pos.left, pos.top, parent);
dbg_dump_wnd_styles(style, exstyle); //dbg_dump_wnd_styles(style, exstyle);
#endif
if (parent != g_ddraw.hwnd)
return TRUE;
/* Atrox */ /* Atrox */
if (style == 0x500100C4 && strcmp(class_name, "Edit") == 0) 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) static unsigned char util_get_pixel(int x, int y)