diff options
author | corvid <corvid@lavabit.com> | 2011-08-04 07:13:13 +0000 |
---|---|---|
committer | corvid <corvid@lavabit.com> | 2011-08-04 07:13:13 +0000 |
commit | bc05ad05cb92d0b67c6354c2ffe96b4957257242 (patch) | |
tree | 693ba73943b0e42feccd994c608328ccbe6ae920 /dw/fltkviewbase.cc | |
parent | b0b6145de9007ec837a90121c1af5bc86d5e9dfd (diff) |
rm my FLTK2-era points array optimisation for drawPolygon()
(I had made it use that less-clear int[][2] interface because fltk2 let you add
all of the vertices in one call.)
It feels good to change that nasty-looking pointArray in Polygon::draw().
Diffstat (limited to 'dw/fltkviewbase.cc')
-rw-r--r-- | dw/fltkviewbase.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dw/fltkviewbase.cc b/dw/fltkviewbase.cc index ce8dc475..a9cd6bcc 100644 --- a/dw/fltkviewbase.cc +++ b/dw/fltkviewbase.cc @@ -478,7 +478,7 @@ void FltkViewBase::drawArc (core::style::Color *color, void FltkViewBase::drawPolygon (core::style::Color *color, core::style::Color::Shading shading, - bool filled, bool convex, int points[][2], + bool filled, bool convex, core::Point *points, int npoints) { if (npoints > 0) { @@ -493,8 +493,8 @@ void FltkViewBase::drawPolygon (core::style::Color *color, fl_begin_loop(); for (int i = 0; i < npoints; i++) { - fl_vertex(translateCanvasXToViewX(points[i][0]), - translateCanvasYToViewY(points[i][1])); + fl_vertex(translateCanvasXToViewX(points[i].x), + translateCanvasYToViewY(points[i].y)); } if (filled) { if (convex) |