X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Flayer_pastecanvas.cpp;h=04ed8b926da89a0ab4f9ca3840a49d1648b31224;hb=2f015c519aa92f29144873527c109c21c171c6a7;hp=747f7700bcf41f54d501ecaacce7f9ca26af3b3d;hpb=159c8ba9953730ff45962e6f92370fd531af65f9;p=synfig.git 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)