From: Tom Tromey Date: Fri, 14 May 2004 22:17:44 +0000 (+0000) Subject: XGraphics.java (drawImage): Use `XOffScreenImage', not `XGraphicsConfiguration.XOffSc... X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ae0d0d592f01a1d71ee5941b241b9af75c66ef23;p=gcc.git XGraphics.java (drawImage): Use `XOffScreenImage', not `XGraphicsConfiguration.XOffScreenImage'. * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage', not `XGraphicsConfiguration.XOffScreenImage'. From-SVN: r81863 --- 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 + + * gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage', + not `XGraphicsConfiguration.XOffScreenImage'. + 2004-05-14 Scott Gilbertson * 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 ());