Commit 938f2314 authored by Alexandre Julliard's avatar Alexandre Julliard

winefile: Properly handle negative coordinates for mouse events.

parent f51c4004
...@@ -4320,7 +4320,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM ...@@ -4320,7 +4320,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
case WM_LBUTTONDOWN: { case WM_LBUTTONDOWN: {
RECT rt; RECT rt;
int x = LOWORD(lparam); int x = (short)LOWORD(lparam);
GetClientRect(hwnd, &rt); GetClientRect(hwnd, &rt);
...@@ -4338,7 +4338,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM ...@@ -4338,7 +4338,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
if (GetCapture() == hwnd) { if (GetCapture() == hwnd) {
#ifdef _NO_EXTENSIONS #ifdef _NO_EXTENSIONS
RECT rt; RECT rt;
int x = LOWORD(lparam); int x = (short)LOWORD(lparam);
draw_splitbar(hwnd, last_split); draw_splitbar(hwnd, last_split);
last_split = -1; last_split = -1;
GetClientRect(hwnd, &rt); GetClientRect(hwnd, &rt);
...@@ -4376,7 +4376,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM ...@@ -4376,7 +4376,7 @@ static LRESULT CALLBACK ChildWndProc(HWND hwnd, UINT nmsg, WPARAM wparam, LPARAM
case WM_MOUSEMOVE: case WM_MOUSEMOVE:
if (GetCapture() == hwnd) { if (GetCapture() == hwnd) {
RECT rt; RECT rt;
int x = LOWORD(lparam); int x = (short)LOWORD(lparam);
#ifdef _NO_EXTENSIONS #ifdef _NO_EXTENSIONS
HDC hdc = GetDC(hwnd); HDC hdc = GetDC(hwnd);
......
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