Corrected bug #1437. Corrected the cast of two short values from an lParam. lParam...
authorDavid Rolland <rold2007@yahoo.com>
Sun, 6 Apr 2014 09:32:01 +0000 (21:32 +1200)
committerDavid Rolland <rold2007@yahoo.com>
Wed, 9 Apr 2014 06:24:21 +0000 (18:24 +1200)
commitcb8ddb11799e54037921d42b8445f9ecf7c46413
tree85b1ea2d19ff1725d8ba98589ae999e281e2ea6d
parenta8cb5c39837cd4c968ff1f02aaca0e0ddcb3c424
Corrected bug #1437. Corrected the cast of two short values from an lParam. lParam contains two signed-short, the position can be negative when another mouse event happens with a mouse_move (mouse_click, etc.)
The Microsoft documentation specifies NOT to use LOWORD and HIWORD macros to extract the x/y positions as it won't work correctly with multiple monitors. See http://msdn.microsoft.com/en-us/library/windows/desktop/ms645607(v=vs.85).aspx.
modules/highgui/src/window_w32.cpp