We needed the texture one pixel larger to not have lines between the
tiles.

2006-06-01  Sven de Marothy  <[EMAIL PROTECTED]>

        * gnu/java/awt/peer/gtk/CairoGraphics2D.java:
        (setPaint): Scale +1 pixel larger.


Index: gnu/java/awt/peer/gtk/CairoGraphics2D.java
===================================================================
RCS file: /sources/classpath/classpath/gnu/java/awt/peer/gtk/CairoGraphics2D.java,v
retrieving revision 1.9
diff -U3 -r1.9 CairoGraphics2D.java
--- gnu/java/awt/peer/gtk/CairoGraphics2D.java	1 Jun 2006 10:51:17 -0000	1.9
+++ gnu/java/awt/peer/gtk/CairoGraphics2D.java	1 Jun 2006 14:00:34 -0000
@@ -572,8 +572,8 @@
 	int width = (int) tp.getAnchorRect().getWidth();
 	int height = (int) tp.getAnchorRect().getHeight();
 
-	double scaleX = width / (double) img.getWidth();
-	double scaleY = width / (double) img.getHeight();
+	double scaleX = (width+1) / (double) img.getWidth();
+	double scaleY = (height+1) / (double) img.getHeight();
 
 	AffineTransform at = new AffineTransform(scaleX, 0, 0, scaleY, 0, 0);
 	AffineTransformOp op = new AffineTransformOp(at, getRenderingHints());

Reply via email to