[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cp-patches] fix GdkGraphics2D initialization
From: |
Thomas Fitzsimmons |
Subject: |
[cp-patches] fix GdkGraphics2D initialization |
Date: |
Fri, 02 Sep 2005 00:20:27 -0400 |
Hi,
There's no point in not initializing GdkGraphics2D's static state when
GdkGraphics2D is not enabled -- we already fail if CAIRO is not enabled.
I've committed this patch which fixes PR20014. This is a temporary fix;
now that GTK 2.8 has been released we can soon start depending on Cairo
unconditionally and removing all the useGraphics2D code paths.
Tom
2005-09-02 Thomas Fitzsimmons <address@hidden>
PR awt/20014
* gnu/java/awt/peer/gtk/GdkGraphics2D.java (static): Always call
initStaticState.
Index: gnu/java/awt/peer/gtk/GdkGraphics2D.java
===================================================================
RCS file:
/cvsroot/classpath/classpath/gnu/java/awt/peer/gtk/GdkGraphics2D.java,v
retrieving revision 1.42
diff -u -r1.42 GdkGraphics2D.java
--- gnu/java/awt/peer/gtk/GdkGraphics2D.java 21 Aug 2005 05:30:47 -0000
1.42
+++ gnu/java/awt/peer/gtk/GdkGraphics2D.java 2 Sep 2005 04:11:55 -0000
@@ -107,8 +107,7 @@
if (Configuration.INIT_LOAD_LIBRARY)
System.loadLibrary("gtkpeer");
- if (GtkToolkit.useGraphics2D())
- initStaticState();
+ initStaticState();
}
static native void initStaticState();
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [cp-patches] fix GdkGraphics2D initialization,
Thomas Fitzsimmons <=