OSDN Git Service

* gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 May 2004 22:17:44 +0000 (22:17 +0000)
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 14 May 2004 22:17:44 +0000 (22:17 +0000)
not `XGraphicsConfiguration.XOffScreenImage'.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81863 138bc75d-0d04-0410-961f-82ee72b054a4

libjava/ChangeLog
libjava/gnu/awt/xlib/XGraphics.java

index 0917bfa..c9fad86 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-14  Tom Tromey  <tromey@redhat.com>
+
+       * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
+       not `XGraphicsConfiguration.XOffScreenImage'.
+
 2004-05-14  Scott Gilbertson  <scottg@mantatest.com>
 
        * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
index 0e14e25..60abc87 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000, 2003  Free Software Foundation
+/* Copyright (C) 2000, 2003, 2004  Free Software Foundation
 
    This file is part of libgcj.
 
@@ -209,8 +209,7 @@ public class XGraphics implements Cloneable, DirectRasterGraphics
     if (img instanceof XOffScreenImage)
     {
       // FIXME: have to enforce clip, or is it OK as-is?
-      XGraphicsConfiguration.XOffScreenImage offScreenImage
-        = ((XGraphicsConfiguration.XOffScreenImage)img);
+      XOffScreenImage offScreenImage = (XOffScreenImage) img;
       Pixmap pixmap = offScreenImage.getPixmap ();
       context.copyArea (pixmap, 0, 0, x, y,
         offScreenImage.getWidth (), offScreenImage.getHeight ());