X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=synfig-core%2Ftrunk%2Fsrc%2Fsynfig%2Ftarget_tile.cpp;h=f02b71bc7620adf2039cd0eb51477f0a2bb53de1;hb=9459638ad6797b8139f1e9f0715c96076dbf0890;hp=ef81d5aa0b414b9e57dfc71b64c40aad7d4f6ea1;hpb=ce1b253e2e2e8b19739b642c87041414fd23e5e6;p=synfig.git 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