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:
parent
6736b21a2a
commit
d6aecd8934
@ -466,9 +466,9 @@ Painter::StrokeBezier(const BPoint* controlPoints) const
|
||||
_Transform(&p4);
|
||||
|
||||
curve.move_to(p1.x, p1.y);
|
||||
curve.curve4(p1.x, p1.y,
|
||||
p2.x, p2.y,
|
||||
p3.x, p3.y);
|
||||
curve.curve4(p2.x, p2.y,
|
||||
p3.x, p3.y,
|
||||
p4.x, p4.y);
|
||||
|
||||
|
||||
agg::conv_curve<agg::path_storage> path(curve);
|
||||
@ -494,9 +494,9 @@ Painter::FillBezier(const BPoint* controlPoints) const
|
||||
_Transform(&p4);
|
||||
|
||||
curve.move_to(p1.x, p1.y);
|
||||
curve.curve4(p1.x, p1.y,
|
||||
p2.x, p2.y,
|
||||
p3.x, p3.y);
|
||||
curve.curve4(p2.x, p2.y,
|
||||
p3.x, p3.y,
|
||||
p4.x, p4.y);
|
||||
curve.close_polygon();
|
||||
|
||||
agg::conv_curve<agg::path_storage> path(curve);
|
||||
|
Loading…
Reference in New Issue
Block a user