Windows: fix get-current-mouse-state for HiDPI

This commit is contained in:
Matthew Flatt 2015-12-23 08:31:38 -07:00
parent 65fc1c4e8f
commit 87e17a89da

View File

@ -136,7 +136,7 @@
(list sym)
null))
(define swapped? (not (zero? (GetSystemMetrics SM_SWAPBUTTON))))
(values (make-object point% (POINT-x p) (POINT-y p))
(values (make-object point% (->normal (POINT-x p)) (->normal (POINT-y p)))
(append
(maybe (if swapped? VK_RBUTTON VK_LBUTTON) 'left)
(maybe (if swapped? VK_LBUTTON VK_RBUTTON) 'right)