I need to check a pixel color and I let the user tag the position on the screen.
I've tried both GetCursorPos()
and GetPhysicalCursorPosition()
but neither returns the correct value.
(I noticed that getting my screen resolution via GetSystemMetrics returns a wrong resolution as well. It reports to be 2560x1440, but it really is 3840x2160.)
So, when multiplying the result of GetCursorPos()
by 1.5, I do get the correct cursor position for my monitor. However, the positions on my other two 1080p monitors are still wrong. They were not correct before.