This is the mail archive of the 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  <>

        * java/awt/image/
        (filter): Use Graphics2D interface instead of directly using the
        GdkGraphics2D peer.

Index: java/awt/image/
RCS file: /cvs/gcc/gcc/libjava/java/awt/image/Attic/,v
retrieving revision
diff -u -r1.1.2.3
--- java/awt/image/	5 Mar 2004 18:27:01 -0000
+++ java/awt/image/	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.*;
@@ -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]