mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-22 15:11:54 +00:00
(svn r4810) - Fix: removed warning about strict-alias (release build)
This commit is contained in:
parent
29337381a0
commit
11f4f6276f
@ -202,7 +202,7 @@ static void CALLBACK TrackMouseTimerProc(HWND hwnd, UINT msg, UINT event, DWORD
|
||||
* Compare this with the current screen coordinates of the mouse and if it
|
||||
* falls outside of the area or our window we have left the window. */
|
||||
GetClientRect(hwnd, &rc);
|
||||
MapWindowPoints(hwnd, HWND_DESKTOP, (LPPOINT)&rc, 2);
|
||||
MapWindowPoints(hwnd, HWND_DESKTOP, (LPPOINT)(LPRECT)&rc, 2);
|
||||
GetCursorPos(&pt);
|
||||
|
||||
if (!PtInRect(&rc, pt) || (WindowFromPoint(pt) != hwnd)) {
|
||||
|
Loading…
Reference in New Issue
Block a user