summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKrzysztof Kosi??ski <tweenk.pl@gmail.com>2010-08-11 23:34:47 +0000
committerKrzysztof KosiƄski <tweenk.pl@gmail.com>2010-08-11 23:34:47 +0000
commitb8b12192de28fabc232bcbedf9ab660a212956ab (patch)
tree8fc101766cb37833d2e565f61058ee703817798b /src
parentFix light vector computation for lighting filters (diff)
downloadinkscape-b8b12192de28fabc232bcbedf9ab660a212956ab.tar.gz
inkscape-b8b12192de28fabc232bcbedf9ab660a212956ab.zip
Fix bitmap opacity
(bzr r9508.1.58)
Diffstat (limited to 'src')
-rw-r--r--src/display/nr-arena-item.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/display/nr-arena-item.cpp b/src/display/nr-arena-item.cpp
index fe50f7753..adbf772bc 100644
--- a/src/display/nr-arena-item.cpp
+++ b/src/display/nr-arena-item.cpp
@@ -401,7 +401,7 @@ nr_arena_item_invoke_render (cairo_t *ct, NRArenaItem *item, NRRectL const *area
bool needs_intermediate_rendering = false;
bool &nir = needs_intermediate_rendering;
- bool needs_opacity = (item->opacity != 255);
+ bool needs_opacity = (item->opacity != 255 && !item->render_opacity);
// this item needs an intermediate rendering if:
nir |= (item->mask != NULL); // 1. it has a mask
@@ -453,7 +453,6 @@ nr_arena_item_invoke_render (cairo_t *ct, NRArenaItem *item, NRRectL const *area
if (item->mask) {
maskgroup.push_with_content(CAIRO_CONTENT_COLOR_ALPHA);
// handle opacity of a masked object by composing it with the mask
- // this uses 1/4 the memory of composing it with full rendering
if (needs_opacity) {
maskopacitygroup.push();
}