should have fixed BView::StrokeBezier() and BView::FillBezier(), thanks to jan__64 for reporting
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17303 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -466,9 +466,9 @@ Painter::StrokeBezier(const BPoint* controlPoints) const
|
|||||||
_Transform(&p4);
|
_Transform(&p4);
|
||||||
|
|
||||||
curve.move_to(p1.x, p1.y);
|
curve.move_to(p1.x, p1.y);
|
||||||
curve.curve4(p1.x, p1.y,
|
curve.curve4(p2.x, p2.y,
|
||||||
p2.x, p2.y,
|
p3.x, p3.y,
|
||||||
p3.x, p3.y);
|
p4.x, p4.y);
|
||||||
|
|
||||||
|
|
||||||
agg::conv_curve<agg::path_storage> path(curve);
|
agg::conv_curve<agg::path_storage> path(curve);
|
||||||
@@ -494,9 +494,9 @@ Painter::FillBezier(const BPoint* controlPoints) const
|
|||||||
_Transform(&p4);
|
_Transform(&p4);
|
||||||
|
|
||||||
curve.move_to(p1.x, p1.y);
|
curve.move_to(p1.x, p1.y);
|
||||||
curve.curve4(p1.x, p1.y,
|
curve.curve4(p2.x, p2.y,
|
||||||
p2.x, p2.y,
|
p3.x, p3.y,
|
||||||
p3.x, p3.y);
|
p4.x, p4.y);
|
||||||
curve.close_polygon();
|
curve.close_polygon();
|
||||||
|
|
||||||
agg::conv_curve<agg::path_storage> path(curve);
|
agg::conv_curve<agg::path_storage> path(curve);
|
||||||
|
|||||||
Reference in New Issue
Block a user