mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-17 16:52:49 +00:00
The Windows sampler read the pointer with GetCursorPos when it handled WM_LBUTTONUP, so a pointer that moved after the release picked a different pixel. It now takes the point from the release message's lParam, a signed client point, and converts it to screen coordinates. lParam holds each coordinate in 16 bits, so on a virtual screen wider or taller than 32,767 pixels the high bits come from the message's own pointer position (MSG.pt).