Files
vectorcraft/apps
dotCooCoo fe9cfa875c Color: Sample Color from Screen picks where the button was released
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).
2026-11-16 00:18:50 -08:00
..