This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Patch: FYI: xlib peer patch
- From: Tom Tromey <tromey at redhat dot com>
- To: Java Patch List <java-patches at gcc dot gnu dot org>
- Date: 14 May 2004 16:05:49 -0600
- Subject: Patch: FYI: xlib peer patch
- Reply-to: tromey at redhat dot com
I'm checking this in. This has been sitting in my tree for quite some
time. It fixes the xlib peers to actually compile.
Tom
Index: ChangeLog
from Tom Tromey <tromey@redhat.com>
* gnu/awt/xlib/XGraphics.java (drawImage): Use `XOffScreenImage',
not `XGraphicsConfiguration.XOffScreenImage'.
Index: gnu/awt/xlib/XGraphics.java
===================================================================
RCS file: /cvs/gcc/gcc/libjava/gnu/awt/xlib/XGraphics.java,v
retrieving revision 1.7
diff -u -r1.7 XGraphics.java
--- gnu/awt/xlib/XGraphics.java 29 Jan 2004 19:28:26 -0000 1.7
+++ gnu/awt/xlib/XGraphics.java 14 May 2004 22:14:34 -0000
@@ -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 @@
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 ());