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:
Axel Dörfler 2006-06-14 10:49:27 +00:00
parent 1b0c0ad7e9
commit c29875897d

View File

@ -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);