Hi, This patch fixes pixel shifting in the drawLine method. There were some hard-coded values which needed to be removed.
Cheers, Francis 2006-11-29 Francis Kung <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/CairoGraphics2D.java (drawLine): Remove hard-coded pixel shifting.
Index: gnu/java/awt/peer/gtk/CairoGraphics2D.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,v retrieving revision 1.54 diff -u -r1.54 CairoGraphics2D.java --- gnu/java/awt/peer/gtk/CairoGraphics2D.java 25 Nov 2006 22:19:39 -0000 1.54 +++ gnu/java/awt/peer/gtk/CairoGraphics2D.java 29 Nov 2006 15:39:29 -0000 @@ -1253,7 +1253,7 @@ if (x1 == x2 && y1 == y2) fill(new Rectangle(x1, y1, 1, 1)); else - draw(new Line2D.Double(x1 + 0.5, y1 + 0.5, x2 + 0.5, y2 + 0.5)); + draw(new Line2D.Double(x1, y1, x2, y2)); } public void drawRect(int x, int y, int width, int height)