From: dooglus Date: Tue, 25 Nov 2008 01:21:38 +0000 (+0000) Subject: Add comments saying not to disable the layer optimization. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=ca157a87151421913925eaef67fdd402bbdc8c8f;p=synfig.git Add comments saying not to disable the layer optimization. git-svn-id: https://synfig.svn.sourceforge.net/svnroot/synfig@2266 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-core/trunk/src/synfig/target_scanline.cpp b/synfig-core/trunk/src/synfig/target_scanline.cpp index 49cff08..b4745fe 100644 --- a/synfig-core/trunk/src/synfig/target_scanline.cpp +++ b/synfig-core/trunk/src/synfig/target_scanline.cpp @@ -47,6 +47,12 @@ using namespace synfig; /* === M A C R O S ========================================================= */ +// note that if this isn't defined then the rendering is incorrect for +// the straight blend method since the optimize_layers() function in +// canvas.cpp which makes the straight blend method work correctly +// isn't called. ie. leave this defined. to see the problem, draw a +// small circle over a solid background. set circle to amount 0.99 +// and blend method 'straight'. the background should vanish but doesn't #define SYNFIG_OPTIMIZE_LAYER_TREE #define PIXEL_RENDERING_LIMIT 1500000 diff --git a/synfig-core/trunk/src/synfig/target_tile.cpp b/synfig-core/trunk/src/synfig/target_tile.cpp index ef81d5a..f02b71b 100644 --- a/synfig-core/trunk/src/synfig/target_tile.cpp +++ b/synfig-core/trunk/src/synfig/target_tile.cpp @@ -51,7 +51,14 @@ using namespace synfig; const unsigned int DEF_TILE_WIDTH = TILE_SIZE / 2; const unsigned int DEF_TILE_HEIGHT= TILE_SIZE / 2; +// note that if this isn't defined then the rendering is incorrect for +// the straight blend method since the optimize_layers() function in +// canvas.cpp which makes the straight blend method work correctly +// isn't called. ie. leave this defined. to see the problem, draw a +// small circle over a solid background. set circle to amount 0.99 +// and blend method 'straight'. the background should vanish but doesn't #define SYNFIG_OPTIMIZE_LAYER_TREE + #ifdef _DEBUG // #define SYNFIG_DISPLAY_EFFICIENCY #endif