Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use correct macros to get the mouse position.
MSDN says: Do not use the LOWORD or HIWORD macros to extract the x- and y- coordinates of the cursor position because these macros return incorrect results on systems with multiple monitors. Systems with multiple monitors can have negative x- and y- coordinates, and LOWORD and HIWORD treat the coordinates as unsigned quantities.
- Loading branch information