diff options
author | Campbell Barton <ideasman42@gmail.com> | 2014-04-01 04:34:00 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2014-04-01 08:22:28 +0400 |
commit | 617557b08ea94e2b65a1697ddf0b79651204d92b (patch) | |
tree | 50b24bab075b42fa20456140c9a9681cfb01325b /source/blender/compositor/intern | |
parent | 2c00ecc738c04dc5dc22d4a6b81a1e937526ba6d (diff) |
Code cleanup: remove TRUE/FALSE & WITH_BOOL_COMPAT define
Diffstat (limited to 'source/blender/compositor/intern')
-rw-r--r-- | source/blender/compositor/intern/COM_ExecutionSystemHelper.h | 2 | ||||
-rw-r--r-- | source/blender/compositor/intern/COM_compositor.cpp | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/source/blender/compositor/intern/COM_ExecutionSystemHelper.h b/source/blender/compositor/intern/COM_ExecutionSystemHelper.h index 002423c195c..ae9e75e0408 100644 --- a/source/blender/compositor/intern/COM_ExecutionSystemHelper.h +++ b/source/blender/compositor/intern/COM_ExecutionSystemHelper.h @@ -92,7 +92,7 @@ public: * Find all Node Operations that needs to be executed. * @param rendering * the rendering parameter will tell what type of execution we are doing - * FALSE is editing, TRUE is rendering + * false is editing, true is rendering */ static void findOutputNodeOperations(vector<NodeOperation *> *result, vector<NodeOperation *>& operations, bool rendering); diff --git a/source/blender/compositor/intern/COM_compositor.cpp b/source/blender/compositor/intern/COM_compositor.cpp index 1c1dcf1c37d..99655c67a3f 100644 --- a/source/blender/compositor/intern/COM_compositor.cpp +++ b/source/blender/compositor/intern/COM_compositor.cpp @@ -36,7 +36,7 @@ extern "C" { #include "COM_MovieDistortionOperation.h" static ThreadMutex s_compositorMutex; -static bool is_compositorMutex_init = FALSE; +static bool is_compositorMutex_init = false; static void intern_freeCompositorCaches() { @@ -50,9 +50,9 @@ void COM_execute(RenderData *rd, Scene *scene, bNodeTree *editingtree, int rende /* initialize mutex, TODO this mutex init is actually not thread safe and * should be done somewhere as part of blender startup, all the other * initializations can be done lazily */ - if (is_compositorMutex_init == FALSE) { + if (is_compositorMutex_init == false) { BLI_mutex_init(&s_compositorMutex); - is_compositorMutex_init = TRUE; + is_compositorMutex_init = true; } BLI_mutex_lock(&s_compositorMutex); @@ -69,7 +69,7 @@ void COM_execute(RenderData *rd, Scene *scene, bNodeTree *editingtree, int rende * Reserved preview size is determined by render output for now. */ float aspect = rd->xsch > 0 ? (float)rd->ysch / (float)rd->xsch : 1.0f; - BKE_node_preview_init_tree(editingtree, COM_PREVIEW_SIZE, (int)(COM_PREVIEW_SIZE * aspect), FALSE); + BKE_node_preview_init_tree(editingtree, COM_PREVIEW_SIZE, (int)(COM_PREVIEW_SIZE * aspect), false); /* initialize workscheduler, will check if already done. TODO deinitialize somewhere */ bool use_opencl = (editingtree->flag & NTREE_COM_OPENCL) != 0; @@ -116,7 +116,7 @@ void COM_deinitialize() BLI_mutex_lock(&s_compositorMutex); intern_freeCompositorCaches(); WorkScheduler::deinitialize(); - is_compositorMutex_init = FALSE; + is_compositorMutex_init = false; BLI_mutex_unlock(&s_compositorMutex); BLI_mutex_end(&s_compositorMutex); } |