From 441c67a5d41e1f0f2e57e9cffca2228b15f13955 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 23 Jan 2008 21:14:34 +0000 Subject: [PATCH] Use an appropriate blend method when blitting to the area around the clipped pastecanvas. git-svn-id: http://svn.voria.com/code@1446 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/layer_pastecanvas.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp b/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp index 747f770..04ed8b9 100644 --- a/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp +++ b/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp @@ -401,7 +401,10 @@ Layer_PasteCanvas::accelerated_render(Context context,Surface *surface,int quali // the area we're about to blit is transparent, so it doesn't // matter whether we use 'straight' or 'straight onto' here - apen.set_blend_method(Color::BLEND_STRAIGHT); + if (blend_method == Color::BLEND_ALPHA_BRIGHTEN) + apen.set_blend_method(blend_method); + else + apen.set_blend_method(Color::BLEND_STRAIGHT); /* This represents the area we're pasting into the tile, * within the tile as a whole. Areas (A), (B), (C) and (D) -- 2.7.4