winefile: Properly handle negative coordinates for mouse events.
This commit is contained in:
parent
f51c400436
commit
938f231455
|
@ -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
|
||||||
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
|
||||||
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);
|
||||||
|
|
Loading…
Reference in New Issue