[gui][PATCH] remove translation from GtkImagePainter.setPixels

Thomas Fitzsimmons fitzsim@redhat.com
Sat Jun 12 00:23:00 GMT 2004


Hi,

I removed this unneeded translation from GtkImagePainter.setPixels.  It
was causing the image in Kaffe's WidgetsDemo test to be misplaced.  I
committed this to java-gui-branch.

Tom

2004-06-11  Thomas Fitzsimmons  <fitzsim@redhat.com>

	* gnu/java/awt/peer/gtk/GtkImagePainter.java
	(setPixels(int,int,int,int,ColorModel,int[],int,int)): Remove
	translation.

Index: gnu/java/awt/peer/gtk/GtkImagePainter.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/java/awt/peer/gtk/GtkImagePainter.java,v
retrieving revision 1.2.18.2
diff -u -r1.2.18.2 GtkImagePainter.java
--- gnu/java/awt/peer/gtk/GtkImagePainter.java	17 May 2004 16:20:59 -0000	1.2.18.2
+++ gnu/java/awt/peer/gtk/GtkImagePainter.java	11 Jun 2004 23:44:30 -0000
@@ -104,7 +104,7 @@
     s_width = Math.abs (sx2 - sx1);
     s_height = Math.abs (sy2 - sy1);
     clip = new Rectangle (sx1, sy1, s_width, s_height);
-    
+
     new Thread (this).start ();
   }
 
@@ -170,8 +170,6 @@
 
 	offset += r.y * scansize + r.x;
 
-	r.translate (-Math.abs (clip.x - startX), -Math.abs (clip.y - startY));
-
 	width = r.width;
 	height = r.height;
 	x = r.x;




More information about the Java-patches mailing list