This is the mail archive of the java-patches@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Patch: FYI: xlib peer patch


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 ());


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]