small gdkregion.c patch



Hi,

This fixes a compilation warning (the only one!) under
linux 2.1.97/glibc 2.0.7/egcs 1.0.2.  I've made the (erroneous?)
assumption that passing an arbitrary default fill rule
is preferable to passing an illegal one. 

This is against gtk+ 1.0 CVS sometime yesterday.

Thanks,

Michael
csf@moscow.com

--- gtk+/gdk/gdkregion.c.orig	Sun Apr 19 16:27:13 1998
+++ gtk+/gdk/gdkregion.c	Sun Apr 19 16:38:48 1998
@@ -141,6 +141,9 @@
     case GDK_WINDING_RULE:
       xfill_rule = WindingRule;
       break;
+
+    default:
+      xfill_rule = EvenOddRule;
     }
 
   xregion = XPolygonRegion ((XPoint *) points, npoints, xfill_rule);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]