Fixed Windows build

Sam Lantinga 2017-01-28 14:35:35 -08:00
parent 869b7fe314
commit 52e9c42df9
1 changed files with 8 additions and 6 deletions

View File

@ -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. */
POINT pt;
RECT hwndRect;
HWND currentHnd;
GetCursorPos(&pt);
HWND currentHnd = WindowFromPoint( pt );
currentHnd = WindowFromPoint(pt);
ScreenToClient(hwnd, &pt);
GetClientRect(hwnd, &hwndRect);