This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC 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]

[Bug SWING/16280] Swing application fails with Graphics2D enabled


------- Additional Comments From roman at ontographics dot com  2004-06-29 21:27 -------
Ok, I worked it out. The following makes it work, there are only some assertions
removed. I don't know, if this is legal, but it works.


Index: jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c
===================================================================
RCS file:
/cvsroot/gcc/gcc/libjava/jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c,v
retrieving revision 1.5.8.4
diff -u -r1.5.8.4 gnu_java_awt_peer_gtk_GdkGraphics2D.c
--- jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c  21 May 2004 23:34:16
-0000      1.5.8.4
+++ jni/gtk-peer/gnu_java_awt_peer_gtk_GdkGraphics2D.c  29 Jun 2004 21:25:45 -0000
@@ -248,7 +248,7 @@
 static void
 begin_drawing_operation (struct graphics2d * gr)
 {
-  g_assert(cairo_status (gr->cr) == CAIRO_STATUS_SUCCESS);
+  /* g_assert(cairo_status (gr->cr) == CAIRO_STATUS_SUCCESS); */
   if (gr->drawbuf)
     {

@@ -276,7 +276,7 @@
 static void
 end_drawing_operation (struct graphics2d * gr)
 {
-  g_assert(cairo_status (gr->cr) == CAIRO_STATUS_SUCCESS);
+  /*g_assert(cairo_status (gr->cr) == CAIRO_STATUS_SUCCESS);*/
   if (gr->drawbuf)
     {
       gint drawable_width, drawable_height;


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=16280


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