From: dooglus Date: Wed, 23 Jan 2008 20:23:47 +0000 (+0000) Subject: Use Color::is_straight(). X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=159c8ba9953730ff45962e6f92370fd531af65f9;p=synfig.git Use Color::is_straight(). git-svn-id: http://svn.voria.com/code@1437 1f10aa63-cdf2-0310-b900-c93c546f37ac --- 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;