This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[gui] [PATCH] FYI: Fix AffineTransformOp


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;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]