Fixed Windows build
parent
869b7fe314
commit
52e9c42df9
|
@ -525,8 +525,10 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam)
|
||||||
/* we check for where Windows thinks the system cursor lives in this case, so we don't really lose mouse accel, etc. */
|
/* we check for where Windows thinks the system cursor lives in this case, so we don't really lose mouse accel, etc. */
|
||||||
POINT pt;
|
POINT pt;
|
||||||
RECT hwndRect;
|
RECT hwndRect;
|
||||||
|
HWND currentHnd;
|
||||||
|
|
||||||
GetCursorPos(&pt);
|
GetCursorPos(&pt);
|
||||||
HWND currentHnd = WindowFromPoint( pt );
|
currentHnd = WindowFromPoint(pt);
|
||||||
ScreenToClient(hwnd, &pt);
|
ScreenToClient(hwnd, &pt);
|
||||||
GetClientRect(hwnd, &hwndRect);
|
GetClientRect(hwnd, &hwndRect);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue