small winedbg improvemnt.
Rein Klazes
rklazes at xs4all.nl
Tue Nov 4 08:01:22 CST 2003
Hi,
info wnd gives the client rectangle in client coordinates, so top,left
are always zero. Better print in screen coordinates so you know *where*
that client rectangle actually is.
Changelog:
programs/winedbg : info.c
Let "info wnd" print the client rectangle in screen coordinates.
Rein.
--
Rein Klazes
rklazes at xs4all.nl
-------------- next part --------------
--- wine/programs/winedbg/info.c 2003-10-14 22:25:16.000000000 +0200
+++ mywine/programs/winedbg/info.c 2003-11-04 14:32:27.000000000 +0100
@@ -391,7 +391,8 @@
strcpy(clsName, "-- Unknown --");
if (!GetWindowText(hWnd, wndName, sizeof(wndName)))
strcpy(wndName, "-- Empty --");
- if (!GetClientRect(hWnd, &clientRect))
+ if (!GetClientRect(hWnd, &clientRect) ||
+ !MapWindowPoints( hWnd, 0, (LPPOINT) &clientRect, 2))
SetRectEmpty(&clientRect);
if (!GetWindowRect(hWnd, &windowRect))
SetRectEmpty(&windowRect);
More information about the wine-patches
mailing list