diff options
author | Robin Gareus <robin@gareus.org> | 2014-05-29 05:06:02 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-05-29 05:06:02 +0200 |
commit | 86e7d86089098347d67cf59284576414609c864c (patch) | |
tree | 2ec9269e77c7617c9238259b69dff59a37657993 /libs/canvas/xfade_curve.cc | |
parent | 0ba8bbdbfc885e6b09cf3e956dd7be4446406317 (diff) |
renice x-fade rendering w/cairo-antialiasing
Diffstat (limited to 'libs/canvas/xfade_curve.cc')
-rw-r--r-- | libs/canvas/xfade_curve.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/canvas/xfade_curve.cc b/libs/canvas/xfade_curve.cc index 0fff4aa03e..90871fb6d9 100644 --- a/libs/canvas/xfade_curve.cc +++ b/libs/canvas/xfade_curve.cc @@ -165,11 +165,14 @@ XFadeCurve::get_path(Rect const & area, Cairo::RefPtr<Cairo::Context> context, C window_space = item_to_window (Duple (c.samples[left].x, c.samples[left].y)); context->move_to (window_space.x, window_space.y); Coord last_x = round(window_space.x); + Coord last_y = round(window_space.y); for (uint32_t idx = left + 1; idx < right; ++idx) { window_space = item_to_window (Duple (c.samples[idx].x, c.samples[idx].y)); if (last_x == round(window_space.x)) continue; + if (last_y == round(window_space.y)) continue; last_x = round(window_space.x); - context->line_to (last_x - .5 , window_space.y); + last_y = round(window_space.y); + context->line_to (last_x - .5 , last_y + .5); } } return context->copy_path (); |