Bug 586316 - Part 1: Use MITER_OR_BEVEL to adhere to cairo expected behavior. r=jrmuizel
authorBas Schouten <bschouten@mozilla.com>
Mon, 16 Aug 2010 09:15:01 +0200
changeset 50648 9cb9cb9dd8fafa7164445ec5037f2a41d5375a81
parent 50647 07822d2a6758a1bf429370de1935089a28487015
child 50649 ea6bbdbf14906e86599d3648594ad5aefc322321
push idunknown
push userunknown
push dateunknown
reviewersjrmuizel
bugs586316
milestone2.0b4pre
Bug 586316 - Part 1: Use MITER_OR_BEVEL to adhere to cairo expected behavior. r=jrmuizel
gfx/cairo/cairo/src/cairo-d2d-surface.cpp
--- a/gfx/cairo/cairo/src/cairo-d2d-surface.cpp
+++ b/gfx/cairo/cairo/src/cairo-d2d-surface.cpp
@@ -1059,17 +1059,17 @@ static RefPtr<ID2D1StrokeStyle>
 	case CAIRO_LINE_CAP_ROUND:
 	    line_cap = D2D1_CAP_STYLE_ROUND;
 	    break;
     }
 
     D2D1_LINE_JOIN line_join = D2D1_LINE_JOIN_MITER;
     switch (style->line_join) {
 	case CAIRO_LINE_JOIN_MITER:
-	    line_join = D2D1_LINE_JOIN_MITER;
+	    line_join = D2D1_LINE_JOIN_MITER_OR_BEVEL;
 	    break;
 	case CAIRO_LINE_JOIN_ROUND:
 	    line_join = D2D1_LINE_JOIN_ROUND;
 	    break;
 	case CAIRO_LINE_JOIN_BEVEL:
 	    line_join = D2D1_LINE_JOIN_BEVEL;
 	    break;
     }