diff options
author | Robin Gareus <robin@gareus.org> | 2014-05-28 19:12:32 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2014-05-28 19:13:25 +0200 |
commit | 034f3dafd7b0610777b87793f795e42009754c12 (patch) | |
tree | 482ed3e42505ff312296ca23cb4da8b1308c6ee8 /libs/canvas/curve.cc | |
parent | 24537477c4c544d0d308f9348396469241918100 (diff) |
Revert "cairo sub-surface prototype & example
This reverts commit c57fcde78cc0fb393fb7420f1edbc71edf572bd0.
and also commit f1f8f89fcb9312065a818233dff4a3f1871fa7fe.
Diffstat (limited to 'libs/canvas/curve.cc')
-rw-r--r-- | libs/canvas/curve.cc | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/libs/canvas/curve.cc b/libs/canvas/curve.cc index 4f8ac3c125..e5db740d66 100644 --- a/libs/canvas/curve.cc +++ b/libs/canvas/curve.cc @@ -318,10 +318,8 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const window_space = item_to_window (Duple(_points.front().x, draw.height())); context->line_to (window_space.x, window_space.y); context->close_path(); - context->set_operator(Cairo::OPERATOR_SOURCE); setup_fill_context(context); context->fill (); - context->set_operator(Cairo::OPERATOR_OVER); break; case Outside: context->stroke_preserve (); @@ -330,10 +328,8 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const window_space = item_to_window (Duple(_points.front().x, 0.0)); context->line_to (window_space.x, window_space.y); context->close_path(); - context->set_operator(Cairo::OPERATOR_SOURCE); setup_fill_context(context); context->fill (); - context->set_operator(Cairo::OPERATOR_OVER); break; } @@ -407,9 +403,7 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const context->line_to (window_space.x, window_space.y); context->close_path(); setup_fill_context(context); - context->set_operator(Cairo::OPERATOR_SOURCE); context->fill (); - context->set_operator(Cairo::OPERATOR_OVER); break; case Outside: context->stroke_preserve (); @@ -418,10 +412,8 @@ Curve::render (Rect const & area, Cairo::RefPtr<Cairo::Context> context) const window_space = item_to_window (Duple (samples[left].x, 0.0)); context->line_to (window_space.x, window_space.y); context->close_path(); - context->set_operator(Cairo::OPERATOR_SOURCE); setup_fill_context(context); context->fill (); - context->set_operator(Cairo::OPERATOR_OVER); break; } context->restore (); |