@@ -52,7 +52,6 @@ Scalar StrokePathGeometry::CreateBevelAndGetDirection(
52
52
vtx_builder.AppendVertex (vtx);
53
53
vtx.position = position + end_offset * dir;
54
54
vtx_builder.AppendVertex (vtx);
55
-
56
55
57
56
return dir;
58
57
}
@@ -101,8 +100,8 @@ StrokePathGeometry::JoinProc StrokePathGeometry::GetJoinProc(Join stroke_join) {
101
100
vtx.position = position + miter_point * dir;
102
101
vtx_builder.AppendVertex (vtx);
103
102
104
- CreateBevelAndGetDirection (vtx_builder, position,
105
- start_offset, end_offset);
103
+ CreateBevelAndGetDirection (vtx_builder, position, start_offset,
104
+ end_offset);
106
105
107
106
// Outer miter point.
108
107
vtx.position = position + miter_point * dir;
@@ -342,9 +341,12 @@ StrokePathGeometry::CreateSolidStrokeVertices(
342
341
cap_offset, scale, false );
343
342
} else {
344
343
// Fill the stroke width At the end of contour.
345
- // Point endOffset = Vector2{-contour.end_direction.y, contour.end_direction.x} * stroke_width * 0.5;
346
- // FML_LOG(ERROR)<< "open loop" << ", adding (" << endOffset.x << ", " << endOffset.y << ") to point (" << polyline.points[contour_start_point_i].x << ", " << polyline.points[contour_start_point_i].y << ")";
347
- // vtx.position = polyline.points[contour_start_point_i] + endOffset;
344
+ // Point endOffset = Vector2{-contour.end_direction.y,
345
+ // contour.end_direction.x} * stroke_width * 0.5; FML_LOG(ERROR)<< "open
346
+ // loop" << ", adding (" << endOffset.x << ", " << endOffset.y << ") to
347
+ // point (" << polyline.points[contour_start_point_i].x << ", " <<
348
+ // polyline.points[contour_start_point_i].y << ")"; vtx.position =
349
+ // polyline.points[contour_start_point_i] + endOffset;
348
350
// vtx_builder.AppendVertex(vtx);
349
351
// vtx.position = polyline.points[contour_start_point_i] - endOffset;
350
352
// vtx_builder.AppendVertex(vtx);
0 commit comments