From: dooglus Date: Tue, 19 Feb 2008 00:52:41 +0000 (+0000) Subject: Use "#define XXX" not "#define XXX 1" for flags we're going to test with "#ifdef... X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2e29582190069aeedc98caa9a5bcec992f59fa19;p=synfig.git Use "#define XXX" not "#define XXX 1" for flags we're going to test with "#ifdef", or I get tricked into thinking that changing the "1" to a "0" will disable the feature. git-svn-id: http://svn.voria.com/code@1752 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 e8ea05b..e43da30 100644 --- a/synfig-core/trunk/src/synfig/target_scanline.cpp +++ b/synfig-core/trunk/src/synfig/target_scanline.cpp @@ -47,7 +47,7 @@ using namespace synfig; /* === M A C R O S ========================================================= */ -#define SYNFIG_OPTIMIZE_LAYER_TREE 1 +#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 8bb06d9..e16b09a 100644 --- a/synfig-core/trunk/src/synfig/target_tile.cpp +++ b/synfig-core/trunk/src/synfig/target_tile.cpp @@ -51,9 +51,9 @@ using namespace synfig; const unsigned int DEF_TILE_WIDTH = TILE_SIZE / 2; const unsigned int DEF_TILE_HEIGHT= TILE_SIZE / 2; -#define SYNFIG_OPTIMIZE_LAYER_TREE 1 +#define SYNFIG_OPTIMIZE_LAYER_TREE #ifdef _DEBUG -// #define SYNFIG_DISPLAY_EFFICIENCY 1 +// #define SYNFIG_DISPLAY_EFFICIENCY #endif /* === G L O B A L S ======================================================= */ @@ -283,7 +283,7 @@ synfig::Target_Tile::render_frame_(Context context,ProgressCallback *cb) if(cb && !cb->amount_complete(total_tiles,total_tiles)) return false; -#if SYNFIG_DISPLAY_EFFICIENCY==1 +#ifdef SYNFIG_DISPLAY_EFFICIENCY synfig::info(">>>>>> Render Time: %fsec, Find Tile Time: %fsec, Add Tile Time: %fsec, Total Time: %fsec",work_time,find_tile_time,add_tile_time,total_time()); synfig::info(">>>>>> FRAME EFFICIENCY: %f%%",(100.0f*work_time/total_time())); #endif