From f742776ac7393cc98fa2e81c554620e595305774 Mon Sep 17 00:00:00 2001 From: corvid Date: Sat, 22 Jan 2011 16:20:53 +0000 Subject: convex polygons for border drawing --- dw/types.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'dw/types.cc') diff --git a/dw/types.cc b/dw/types.cc index 4d94f494..9dcedeea 100644 --- a/dw/types.cc +++ b/dw/types.cc @@ -140,7 +140,7 @@ void Polygon::draw (core::View *view, core::style::Style *style, int x, int y) { if (points->size()) { int i; - const bool filled = false; + const bool filled = false, convex = false; int (*pointArray)[2] = (int (*)[2]) malloc(points->size() * sizeof(*pointArray)); @@ -149,7 +149,7 @@ void Polygon::draw (core::View *view, core::style::Style *style, int x, int y) pointArray[i][1] = y + points->getRef(i)->y; } view->drawPolygon(style->color, core::style::Color::SHADING_NORMAL, - filled, pointArray, i); + filled, convex, pointArray, i); free(pointArray); } } -- cgit v1.2.3