Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
(updated) Always draw crosshair on half-pixels to prevent aliasing #925
Round the coordinates to the nearest whole number and then conditionally add 0.5 pixels if the line width is odd. This makes it so the crosshair is never drawn in between screen pixels and so it will always look crisp/clear.