From c3dd2a48ad784ad4c2e866c781648127179b9da5 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Fri, 3 May 2002 01:18:15 +0000 Subject: Fix teeth on wide arcs. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/fl_arc.cxx | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/fl_arc.cxx b/src/fl_arc.cxx index 7cc19d0f2..6c7929a9b 100644 --- a/src/fl_arc.cxx +++ b/src/fl_arc.cxx @@ -1,5 +1,5 @@ // -// "$Id: fl_arc.cxx,v 1.4.2.3.2.2 2002/01/01 15:11:31 easysw Exp $" +// "$Id: fl_arc.cxx,v 1.4.2.3.2.3 2002/05/03 01:18:15 easysw Exp $" // // Arc functions for the Fast Light Tool Kit (FLTK). // @@ -29,6 +29,7 @@ #include #include +#include void fl_arc(double x, double y, double r, double start, double end) { @@ -49,7 +50,9 @@ void fl_arc(double x, double y, double r, double start, double end) { if (r2 < r1) r1 = r2; n = int(sqrt(r1)*.841471); if (n < 2) n = 2; + if (n > 60) n = 60; } + printf("n = %d\n", n); double epsilon = 1.0/n; double E = end*(M_PI/180); int i = int((E-A)*n); @@ -73,5 +76,5 @@ void fl_circle(double x,double y,double r) { #endif // -// End of "$Id: fl_arc.cxx,v 1.4.2.3.2.2 2002/01/01 15:11:31 easysw Exp $". +// End of "$Id: fl_arc.cxx,v 1.4.2.3.2.3 2002/05/03 01:18:15 easysw Exp $". // -- cgit v1.2.3