Author: spouliot
Date: 2008-01-11 10:35:29 -0500 (Fri, 11 Jan 2008)
New Revision: 92672
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/shape.cpp
Log:
2008-01-11 Sebastien Pouliot <[EMAIL PROTECTED]>
* shape.cpp: Add support for PenLineCapTriangle with a patched cairo.
See bug #345892 for the required cairo patch.
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2008-01-11 14:51:02 UTC (rev 92671)
+++ trunk/moon/src/ChangeLog 2008-01-11 15:35:29 UTC (rev 92672)
@@ -1,3 +1,8 @@
+2008-01-11 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * shape.cpp: Add support for PenLineCapTriangle with a patched cairo.
+ See bug #345892 for the required cairo patch.
+
2008-01-11 Rolf Bjarne Kvinge <[EMAIL PROTECTED]>
* media.cpp: Initialize Media too upon initialization.
Modified: trunk/moon/src/shape.cpp
===================================================================
--- trunk/moon/src/shape.cpp 2008-01-11 14:51:02 UTC (rev 92671)
+++ trunk/moon/src/shape.cpp 2008-01-11 15:35:29 UTC (rev 92672)
@@ -44,6 +44,11 @@
}
}
+/* NOTE: Triangle doesn't exist in Cairo - unless you patched it using
https://bugzilla.novell.com/show_bug.cgi?id=345892 */
+#ifndef HAVE_CAIRO_LINE_CAP_TRIANGLE
+ #define CAIRO_LINE_CAP_TRIANGLE CAIRO_LINE_CAP_ROUND
+#endif
+
static cairo_line_cap_t
convert_line_cap (PenLineCap pen_line_cap)
{
@@ -57,8 +62,9 @@
case PenLineCapSquare:
return CAIRO_LINE_CAP_SQUARE;
case PenLineCapRound:
- case PenLineCapTriangle: /* FIXME: Triangle doesn't
exist in Cairo */
return CAIRO_LINE_CAP_ROUND;
+ case PenLineCapTriangle:
+ return CAIRO_LINE_CAP_TRIANGLE;
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches