Close polygon borders (fix partially drawn hits).
This commit is contained in:
parent
0fba29a67a
commit
7985624037
@ -52,7 +52,7 @@ Polygon::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
|
||||
if (!_points.empty ()) {
|
||||
/* close path */
|
||||
Duple p = item_to_window (Duple (_points.front().x, _points.front().y));
|
||||
context->move_to (p.x, p.y);
|
||||
context->line_to (p.x, p.y);
|
||||
}
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user