From b8b12192de28fabc232bcbedf9ab660a212956ab Mon Sep 17 00:00:00 2001 From: Krzysztof Kosi??ski Date: Thu, 12 Aug 2010 01:34:47 +0200 Subject: Fix bitmap opacity (bzr r9508.1.58) --- src/display/nr-arena-item.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.3