changeset 1858:58d86abb6b3f

drawArc
author corvid <corvid@lavabit.com>
date Sat, 22 Jan 2011 15:29:22 +0000
parents b5825a55b34c
children 17b560081191
files dw/fltkviewbase.cc
diffstat 1 files changed, 3 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkviewbase.cc	Sat Jan 22 07:22:24 2011 +0000
+++ b/dw/fltkviewbase.cc	Sat Jan 22 15:29:22 2011 +0000
@@ -466,18 +466,12 @@
                             int angle1, int angle2)
 {
    fl_color(((FltkColor*)color)->colors[shading]);
-#if 0
-PORT1.3
    int x = translateCanvasXToViewX (centerX) - width / 2;
    int y = translateCanvasYToViewY (centerY) - height / 2;
-   ::fltk::Rectangle rect (x, y, width, height);
-   addchord(rect, angle1, angle2);
-   closepath();
+
+   fl_arc(x, y, width, height, 0.0, 360.0);
    if (filled)
-      fillpath();
-   else
-      strokepath();
-#endif
+      fl_pie(x, y, width, height, 0.0, 360.0);
 }
 
 void FltkViewBase::drawPolygon (core::style::Color *color,