Small fix for extracting mouse coordinates on Windows, in a way that will always work with multiple monitors.

This is the way recommended by Microsoft.
This commit is contained in:
Adi Shavit 2014-01-05 17:21:59 +02:00
parent fdb1019b9e
commit 9dc0bfc755

View File

@ -1474,8 +1474,8 @@ static LRESULT CALLBACK HighGUIProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM
if( uMsg == WM_LBUTTONUP || uMsg == WM_RBUTTONUP || uMsg == WM_MBUTTONUP )
ReleaseCapture();
pt.x = LOWORD( lParam );
pt.y = HIWORD( lParam );
pt.x = GET_X_LPARAM( lParam );
pt.y = GET_Y_LPARAM( lParam );
GetClientRect( window->hwnd, &rect );
icvGetBitmapData( window, &size, 0, 0 );