wineconsole: Properly handle negative coordinates for mouse events.
This commit is contained in:
parent
5b875279d1
commit
f51c400436
|
@ -1177,8 +1177,8 @@ static LRESULT CALLBACK WCUSER_Proc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM
|
|||
{
|
||||
POINT pt;
|
||||
|
||||
pt.x = LOWORD(lParam);
|
||||
pt.y = HIWORD(lParam);
|
||||
pt.x = (short)LOWORD(lParam);
|
||||
pt.y = (short)HIWORD(lParam);
|
||||
ClientToScreen(hWnd, &pt);
|
||||
WCUSER_SetMenuDetails(data, PRIVATE(data)->hPopMenu);
|
||||
TrackPopupMenu(PRIVATE(data)->hPopMenu, TPM_LEFTALIGN|TPM_TOPALIGN,
|
||||
|
|
Loading…
Reference in New Issue