Commit e135a522 authored by Vitaliy Margolen's avatar Vitaliy Margolen Committed by Alexandre Julliard

Use GetSystemMetrics instead of hardcoding drag width & height.

parent baa8bf3c
......@@ -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 pt )
{
MSG msg;
RECT rect;
WORD wDragWidth = GetSystemMetrics(SM_CXDRAG);
WORD wDragHeight= GetSystemMetrics(SM_CYDRAG);
rect.left = pt.x - wDragWidth;
rect.right = pt.x + wDragWidth;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment