Commit ae0d0d59 by Tom Tromey Committed by Tom Tromey

XGraphics.java (drawImage): Use `XOffScreenImage', not `XGraphicsConfiguration.XOffScreenImage'.

	* gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
	not `XGraphicsConfiguration.XOffScreenImage'.

From-SVN: r81863
parent b1b51268
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> 2004-05-14 Scott Gilbertson <scottg@mantatest.com>
* gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap. * gnu/awt/xlib/XCanvasPeer.java (setVisible): Implement unmap.
......
/* Copyright (C) 2000, 2003 Free Software Foundation /* Copyright (C) 2000, 2003, 2004 Free Software Foundation
This file is part of libgcj. This file is part of libgcj.
...@@ -209,8 +209,7 @@ public class XGraphics implements Cloneable, DirectRasterGraphics ...@@ -209,8 +209,7 @@ public class XGraphics implements Cloneable, DirectRasterGraphics
if (img instanceof XOffScreenImage) if (img instanceof XOffScreenImage)
{ {
// FIXME: have to enforce clip, or is it OK as-is? // FIXME: have to enforce clip, or is it OK as-is?
XGraphicsConfiguration.XOffScreenImage offScreenImage XOffScreenImage offScreenImage = (XOffScreenImage) img;
= ((XGraphicsConfiguration.XOffScreenImage)img);
Pixmap pixmap = offScreenImage.getPixmap (); Pixmap pixmap = offScreenImage.getPixmap ();
context.copyArea (pixmap, 0, 0, x, y, context.copyArea (pixmap, 0, 0, x, y,
offScreenImage.getWidth (), offScreenImage.getHeight ()); offScreenImage.getWidth (), offScreenImage.getHeight ());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment