From 159c8ba9953730ff45962e6f92370fd531af65f9 Mon Sep 17 00:00:00 2001 From: dooglus Date: Wed, 23 Jan 2008 20:23:47 +0000 Subject: [PATCH] Use Color::is_straight(). git-svn-id: http://svn.voria.com/code@1437 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-core/trunk/src/synfig/layer_pastecanvas.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp b/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp index d68a619..747f770 100644 --- a/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp +++ b/synfig-core/trunk/src/synfig/layer_pastecanvas.cpp @@ -392,7 +392,7 @@ Layer_PasteCanvas::accelerated_render(Context context,Surface *surface,int quali // 'straight', then we need to blend transparent pixels with the // clipped areas of this tile, because with the 'straight' blend // method, even transparent pixels have an effect on the layers below - if (blend_method == Color::BLEND_STRAIGHT || blend_method == Color::BLEND_STRAIGHT_ONTO) + if (Color::is_straight(blend_method)) { Surface clearsurface; -- 2.7.4