Author: spouliot
Date: 2007-09-28 08:28:30 -0400 (Fri, 28 Sep 2007)
New Revision: 86569
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/shape.cpp
Log:
shape.cpp: ComputeBoundsSlow is no more so we can re-enable the thickness == 0
optimization.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-09-28 12:26:59 UTC (rev 86568)
+++ trunk/moon/src/ChangeLog 2007-09-28 12:28:30 UTC (rev 86569)
@@ -1,3 +1,8 @@
+2007-09-28 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * shape.cpp: ComputeBoundsSlow is no more so we can re-enable the
+ thickness == 0 optimization.
+
2007-09-27 Jeffrey Stedfast <[EMAIL PROTECTED]>
* xaml.cpp (flush_char_data): g_strchomp() the cdata (as
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2007-09-28 12:26:59 UTC (rev 86568)
+++ trunk/moon/src/shape.cpp 2007-09-28 12:28:30 UTC (rev 86569)
@@ -178,17 +178,11 @@
if (stroke) {
double thickness = shape_get_stroke_thickness (this);
-#if FALSE
-// this optimization is broken wrt ComputeBoundsSlow since
-// - thickness isn't checked there (fixed) and
-// - the new_path clears the data for a cairo_fill_extents call anyway
-// e.g. <Polyline Fill="#000000" Stroke="#FF00FF" StrokeThickness="0"
Points="10,10 20,10 20,20 10,20" />
if (thickness == 0) {
if (drawn)
cairo_new_path (cr);
return;
}
-#endif
if (IsDegenerate ())
cairo_set_line_width (cr, 1.0);
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches