summaryrefslogtreecommitdiff
path: root/libjava
diff options
context:
space:
mode:
authortromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 22:17:44 +0000
committertromey <tromey@138bc75d-0d04-0410-961f-82ee72b054a4>2004-05-14 22:17:44 +0000
commitc2eb32045d57b47c93d9216fa898a229988cae98 (patch)
treeba98268c13baea103d039712fef61cb2f5d26e97 /libjava
parent620122ace116a24b32a99cee058260aa4680dafb (diff)
downloadgcc-c2eb32045d57b47c93d9216fa898a229988cae98.tar.gz
* gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
not `XGraphicsConfiguration.XOffScreenImage'. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@81863 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava')
-rw-r--r--libjava/ChangeLog5
-rw-r--r--libjava/gnu/awt/xlib/XGraphics.java5
2 files changed, 7 insertions, 3 deletions
diff --git a/libjava/ChangeLog b/libjava/ChangeLog
index 0917bfa8793..c9fad869a27 100644
--- a/libjava/ChangeLog
+++ b/libjava/ChangeLog
@@ -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.
diff --git a/libjava/gnu/awt/xlib/XGraphics.java b/libjava/gnu/awt/xlib/XGraphics.java
index 0e14e25bc71..60abc87b540 100644
--- a/libjava/gnu/awt/xlib/XGraphics.java
+++ b/libjava/gnu/awt/xlib/XGraphics.java
@@ -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 ());