Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(updated) Always draw crosshair on half-pixels to prevent aliasing #925

Merged
merged 1 commit into from Jan 11, 2013

Conversation

danxshap
Copy link
Contributor

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.

Note: this replaces #924, and it only applies the coordinate adjustment when drawing (like in #17).

@ghost ghost assigned dnschnur Jan 11, 2013
@dnschnur
Copy link
Member

Looks good; thank you!

dnschnur added a commit that referenced this pull request Jan 11, 2013
Always draw crosshair on half-pixels to prevent aliasing.
@dnschnur dnschnur merged commit 4a35faf into flot:master Jan 11, 2013
@dnschnur dnschnur mentioned this pull request Jan 11, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants