13
0

fix prev commit

This commit is contained in:
Robin Gareus 2014-05-29 05:30:13 +02:00
parent 86e7d86089
commit 604abffeb5
2 changed files with 6 additions and 0 deletions

View File

@ -198,6 +198,9 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const
last_y = round(window_space.y);
context->line_to (last_x - .5 , last_y + .5);
}
if (last_x != round(window_space.x) || last_y != round(window_space.y)) {
context->line_to (window_space.x - .5 , window_space.y + .5);
}
switch (curve_fill) {
case None:

View File

@ -174,6 +174,9 @@ XFadeCurve::get_path(Rect const & area, Cairo::RefPtr<Cairo::Context> context, C
last_y = round(window_space.y);
context->line_to (last_x - .5 , last_y + .5);
}
if (last_x != round(window_space.x) || last_y != round(window_space.y)) {
context->line_to (window_space.x - .5 , window_space.y + .5);
}
}
return context->copy_path ();
}