diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-06-18 08:23:06 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-06-18 08:23:06 -0400 |
commit | 77f5f4c4bf9074d953a1653658c8f96f38ae258c (patch) | |
tree | 08790670f6435eed917ab3f2629a0373652cbc1e /libs/canvas/polygon.cc | |
parent | a0c5de281a2ba029a9af53a6ffe3a717280998b3 (diff) |
basically operational switch to canvas drawing coordinates, although text and waves don't work, and redraw areas are too small
Diffstat (limited to 'libs/canvas/polygon.cc')
-rw-r--r-- | libs/canvas/polygon.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/canvas/polygon.cc b/libs/canvas/polygon.cc index 43d7c60cf4..1103cedbee 100644 --- a/libs/canvas/polygon.cc +++ b/libs/canvas/polygon.cc @@ -37,7 +37,9 @@ Polygon::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const render_path (area, context); if (!_points.empty ()) { - context->move_to (_points.front().x, _points.front().y); + /* close path */ + Duple p = item_to_window (Duple (_points.front().x, _points.front().y)); + context->move_to (p.x, p.y); } context->stroke_preserve (); |