[OpenJDK 2D-Dev] Antialiased horizontal or vertical lines.

Denis Lila dlila at redhat.com
Fri Jun 18 20:58:23 UTC 2010


I noticed that anti aliased horizontal and vertical lines are 
not drawn properly. I've described the results (with pictures)
here: http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=509

In the patch, I try shifting line coordinates by half a pixel as 
soon as they're passed into Renderer.java:lineTo, and it seems to
fix it.

However, this seems a bit too easy, so if anyone can think of any
ways in which this fix breaks something, please let me know.

Thank you,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 509fix.patch
Type: text/x-patch
Size: 647 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20100618/6c8a0a73/509fix.patch>

More information about the 2d-dev mailing list