user32: Use GetSystemMetrics instead of hardcoding drag width &
height
Vitaliy Margolen
wine-patch at kievinfo.com
Mon Oct 3 11:45:37 CDT 2005
Vitaliy Margolen
changelog:
user32:
- Use GetSystemMetrics instead of hardcoding drag width & height
-------------- next part --------------
Index: dlls/user/win.c
===================================================================
RCS file: /home/wine/wine/dlls/user/win.c,v
retrieving revision 1.19
diff -u -p -r1.19 win.c
--- dlls/user/win.c 22 Sep 2005 10:44:40 -0000 1.19
+++ dlls/user/win.c 3 Oct 2005 16:41:28 -0000
@@ -46,8 +46,6 @@ WINE_DEFAULT_DEBUG_CHANNEL(win);
/**********************************************************************/
-static WORD wDragWidth = 4;
-static WORD wDragHeight= 3;
static void *user_handles[NB_USER_HANDLES];
@@ -2965,6 +2963,8 @@ BOOL WINAPI DragDetect( HWND hWnd, POINT
{
MSG msg;
RECT rect;
+ WORD wDragWidth = GetSystemMetrics(SM_CXDRAG);
+ WORD wDragHeight= GetSystemMetrics(SM_CYDRAG);
rect.left = pt.x - wDragWidth;
rect.right = pt.x + wDragWidth;
More information about the wine-patches
mailing list