mirror of
https://github.com/gcc-mirror/gcc.git
synced 2026-05-06 23:25:24 +02:00
XGraphics.java (drawImage): Use XOffScreenImage', not XGraphicsConfiguration.XOffScreenImage'.
* gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage', not `XGraphicsConfiguration.XOffScreenImage'. From-SVN: r81863
This commit is contained in:
@@ -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 ());
|
||||
|
||||
Reference in New Issue
Block a user