Hi, Roman asked me to look again at the drawLine issue and I now changed the code to unconditionally apply a shift to all non-1-pixel lines. With that Swing compos look good again and 1-pixel lines still work.
ChangeLog: 2006-07-26 Robert Schuster <[EMAIL PROTECTED]> * gnu/java/awt/peer/gtk/CairoGraphics2D.java: (drawLine): Apply shift to line coordinates. cya Robert
Index: gnu/java/awt/peer/gtk/CairoGraphics2D.java =================================================================== RCS file: /cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,v retrieving revision 1.33 retrieving revision 1.34 diff -u -r1.33 -r1.34 --- gnu/java/awt/peer/gtk/CairoGraphics2D.java 25 Jul 2006 20:58:19 -0000 1.33 +++ gnu/java/awt/peer/gtk/CairoGraphics2D.java 26 Jul 2006 18:20:11 -0000 1.34 @@ -1044,7 +1044,7 @@ if (x1 == x2 && y1 == y2) cairoFillRect(nativePointer, x1, y1, 1, 1); else - cairoDrawLine(nativePointer, x1, y1, x2, y2); + cairoDrawLine(nativePointer, x1 + 0.5, y1 + 0.5, x2 + 0.5, y2 + 0.5); } public void drawRect(int x, int y, int width, int height)
signature.asc
Description: OpenPGP digital signature