diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-03 01:18:15 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-05-03 01:18:15 +0000 |
| commit | c3dd2a48ad784ad4c2e866c781648127179b9da5 (patch) | |
| tree | e70e0eb16d07f8153d7152350d4672e6d80d8b11 /src | |
| parent | 6298f9a0d802e0c0fbc528c86e88a3c2a8e76e85 (diff) | |
Fix teeth on wide arcs.
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2184 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
| -rw-r--r-- | src/fl_arc.cxx | 7 |
1 files changed, 5 insertions, 2 deletions
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 <FL/fl_draw.H> #include <FL/math.h> +#include <stdio.h> 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 $". // |
