Reduced the upper limit of ellipsis divisions as suggested by Stephan.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@17833 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
1b0c0ad7e9
commit
c29875897d
@ -858,9 +858,8 @@ Painter::DrawEllipse(BRect r, bool fill) const
|
||||
int32 divisions = (int32)((xRadius + yRadius + 2 * fPenSize) * PI / 2);
|
||||
if (divisions < 12)
|
||||
divisions = 12;
|
||||
// TODO: arbitrarily set upper limit - should be tested...
|
||||
if (divisions > 32768)
|
||||
divisions = 32768;
|
||||
if (divisions > 4096)
|
||||
divisions = 4096;
|
||||
|
||||
if (fill) {
|
||||
agg::ellipse path(center.x, center.y, xRadius, yRadius, divisions);
|
||||
|
Loading…
Reference in New Issue
Block a user