XGraphics.java (drawImage): Use `XOffScreenImage', not `XGraphicsConfiguration.XOffSc...
authorTom Tromey <tromey@redhat.com>
Fri, 14 May 2004 22:17:44 +0000 (22:17 +0000)
committerTom Tromey <tromey@gcc.gnu.org>
Fri, 14 May 2004 22:17:44 +0000 (22:17 +0000)
* gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
not `XGraphicsConfiguration.XOffScreenImage'.

From-SVN: r81863

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

index 0917bfa879387356aa617bfdd36ebb91fff5bbee..c9fad869a276b4193b4cdac535e4f822230311df 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 0e14e25bc71a6320375eaa30765c6500a2fe0c05..60abc87b540881e870c8640ad8fa4e913f03162d 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 ());