small winedbg improvemnt.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx
--- 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);

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux