From ee1f3282996b981db5c3107c87afd58b082bce44 Mon Sep 17 00:00:00 2001 From: dooglus Date: Sun, 27 Jan 2008 13:03:55 +0000 Subject: [PATCH] Honor the "amount" parameter of the 'duplicate' layer. git-svn-id: http://svn.voria.com/code@1513 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/layer_duplicate.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/layer_duplicate.cpp b/synfig-core/trunk/src/synfig/layer_duplicate.cpp index a9d2f85..6fa857c 100644 --- a/synfig-core/trunk/src/synfig/layer_duplicate.cpp +++ b/synfig-core/trunk/src/synfig/layer_duplicate.cpp @@ -184,7 +184,7 @@ Layer_Duplicate::accelerated_render(Context context,Surface *surface,int quality if(!context.accelerated_render(&tmp,quality,renddesc,&subimagecb)) return false; Surface::alpha_pen apen(surface->begin()); - apen.set_alpha(1.0); + apen.set_alpha(get_amount()); // \todo have a checkbox allowing use of 'behind' to reverse the order? apen.set_blend_method(i ? blend_method : Color::BLEND_COMPOSITE); tmp.blit_to(apen); -- 2.7.4