This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
[gui] [PATCH] FYI: Fix AffineTransformOp
- From: David Jee <djee at redhat dot com>
- To: java-patches at gcc dot gnu dot org
- Date: 08 Mar 2004 12:01:31 -0500
- Subject: [gui] [PATCH] FYI: Fix AffineTransformOp
- Organization:
Hi. I committed the following patch to the java-gui-branch. It
replaces direct references to GdkGraphics2D peers with references to the
generic Graphics2D interface.
-David Jee
2004-03-08 David Jee <djee@redhat.com>
* java/awt/image/AffineTransformOp.java:
(filter): Use Graphics2D interface instead of directly using the
GdkGraphics2D peer.
Index: java/awt/image/AffineTransformOp.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/java/awt/image/Attic/AffineTransformOp.java,v
retrieving revision 1.1.2.3
diff -u -r1.1.2.3 AffineTransformOp.java
--- java/awt/image/AffineTransformOp.java 5 Mar 2004 18:27:01 -0000 1.1.2.3
+++ java/awt/image/AffineTransformOp.java 8 Mar 2004 15:49:33 -0000
@@ -40,8 +40,8 @@
import java.awt.*;
import java.awt.Graphics;
+import java.awt.Graphics2D;
import java.awt.geom.*;
-import gnu.java.awt.peer.gtk.GdkGraphics2D;
/**
@@ -172,7 +172,7 @@
// If it is not, then source image should be converted to color model
// of the destination image
- GdkGraphics2D gr = (GdkGraphics2D) dst.createGraphics ();
+ Graphics2D gr = (Graphics2D) dst.createGraphics ();
gr.setRenderingHints (hints);
gr.drawImage (src, transform, null);
return dst;