Author: spouliot
Date: 2006-05-15 14:01:06 -0400 (Mon, 15 May 2006)
New Revision: 60711
Modified:
trunk/libgdiplus/src/ChangeLog
trunk/libgdiplus/src/pen.c
Log:
2006-05-15 Sebastien Pouliot <[EMAIL PROTECTED]>
* pen.c: Revert the change from r52463. This looks better only when
the pen's width is 1 (but looks worse in other cases). This fix both
bug #77976 (dash style) and #78059 (double pixel). Also remove a FIXME
which is no more required with this fix.
Modified: trunk/libgdiplus/src/ChangeLog
===================================================================
--- trunk/libgdiplus/src/ChangeLog 2006-05-15 15:53:35 UTC (rev 60710)
+++ trunk/libgdiplus/src/ChangeLog 2006-05-15 18:01:06 UTC (rev 60711)
@@ -1,3 +1,10 @@
+2006-05-15 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * pen.c: Revert the change from r52463. This looks better only when
+ the pen's width is 1 (but looks worse in other cases). This fix both
+ bug #77976 (dash style) and #78059 (double pixel). Also remove a FIXME
+ which is no more required with this fix.
+
2006-05-12 Sebastien Pouliot <[EMAIL PROTECTED]>
* image.c: (GdipSaveImageToFile) don't access image->type before the
Modified: trunk/libgdiplus/src/pen.c
===================================================================
--- trunk/libgdiplus/src/pen.c 2006-05-15 15:53:35 UTC (rev 60710)
+++ trunk/libgdiplus/src/pen.c 2006-05-15 18:01:06 UTC (rev 60711)
@@ -88,13 +88,13 @@
{
switch (cap) {
- case LineCapFlat:
case LineCapSquare:
return CAIRO_LINE_CAP_SQUARE;
case LineCapRound:
return CAIRO_LINE_CAP_ROUND;
+ case LineCapFlat:
case LineCapTriangle:
case LineCapNoAnchor:
case LineCapSquareAnchor:
@@ -652,7 +652,7 @@
}
static float Custom [] = { 1.0 };
-static float Dot [] = { 1.0, 2.0 }; // FIXME - this is a workaround for
cairo, should be 1.0, 1.0
+static float Dot [] = { 1.0 };
static float Dash [] = { 3.0, 1.0 };
static float DashDot [] = { 3.0, 1.0, 1.0, 1.0 };
static float DashDotDot [] = { 3.0, 1.0, 1.0, 1.0, 1.0, 1.0 };
@@ -680,7 +680,7 @@
case DashStyleDot:
pen->dash_array = Dot;
- pen->dash_count = 2;
+ pen->dash_count = 1;
break;
case DashStyleDash:
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches