aboutsummaryrefslogtreecommitdiff
path: root/dw/types.cc
diff options
context:
space:
mode:
authorcorvid <corvid@lavabit.com>2011-01-22 16:20:53 +0000
committercorvid <corvid@lavabit.com>2011-01-22 16:20:53 +0000
commitf742776ac7393cc98fa2e81c554620e595305774 (patch)
tree96af9d287d81bdd4420d58237457c87393fcd988 /dw/types.cc
parentbe11b1f245a443a7fee191c63338a590d2940e89 (diff)
convex polygons for border drawing
Diffstat (limited to 'dw/types.cc')
-rw-r--r--dw/types.cc4
1 files changed, 2 insertions, 2 deletions
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);
}
}