diff options
| author | Krzysztof Kosi??ski <tweenk.pl@gmail.com> | 2010-07-07 18:08:47 +0000 |
|---|---|---|
| committer | Krzysztof KosiĆski <tweenk.pl@gmail.com> | 2010-07-07 18:08:47 +0000 |
| commit | b80e2b5bb72ebb814745bd58ccf10bfa617dd7e9 (patch) | |
| tree | 23b5587685ddf4f15b9a1d3a65a066e49a779455 /src/display/nr-arena-shape.cpp | |
| parent | Switch to nearest neighbor filtering when image is larger than original (diff) | |
| download | inkscape-b80e2b5bb72ebb814745bd58ccf10bfa617dd7e9.tar.gz inkscape-b80e2b5bb72ebb814745bd58ccf10bfa617dd7e9.zip | |
Fix group opacity
(bzr r9508.1.13)
Diffstat (limited to 'src/display/nr-arena-shape.cpp')
| -rw-r--r-- | src/display/nr-arena-shape.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/display/nr-arena-shape.cpp b/src/display/nr-arena-shape.cpp index 3f673c944..b51f3a9cf 100644 --- a/src/display/nr-arena-shape.cpp +++ b/src/display/nr-arena-shape.cpp @@ -360,7 +360,6 @@ nr_arena_shape_render(cairo_t *ct, NRArenaItem *item, NRRectL *area, NRPixBlock if (ret & NR_ARENA_ITEM_STATE_INVALID) return ret; } else { - bool needs_opacity = ((1.0 - shape->nrstyle.opacity) >= 0.01); bool has_stroke, has_fill; // we assume the context has no path cairo_save(ct); @@ -374,10 +373,6 @@ nr_arena_shape_render(cairo_t *ct, NRArenaItem *item, NRRectL *area, NRPixBlock has_stroke = shape->nrstyle.prepareStroke(ct, &shape->paintbox); if (has_fill || has_stroke) { - if (needs_opacity) { - cairo_push_group(ct); - } - // TODO: remove segments outside of bbox when no dashes present feed_pathvector_to_cairo(ct, shape->curve->get_pathvector()); if (has_fill) { @@ -389,11 +384,6 @@ nr_arena_shape_render(cairo_t *ct, NRArenaItem *item, NRRectL *area, NRPixBlock cairo_stroke_preserve(ct); } cairo_new_path(ct); // clear path - - if (needs_opacity) { - cairo_pop_group_to_source(ct); - cairo_paint_with_alpha(ct, shape->nrstyle.opacity); - } } // has fill or stroke pattern cairo_restore(ct); } |
