Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2013-03-05 06:47:00 +0400
committerAntony Riakiotakis <kalast@gmail.com>2013-03-05 06:47:00 +0400
commit47c1570e6839e3684bfe4b0c78a3404e5bb72184 (patch)
tree3d989c556444366e54a2736cd38dc11f1b9bd21a /source/blender/imbuf/IMB_imbuf_types.h
parent044955276a44b6d933bb3020faf55825fe23c8a2 (diff)
Image buffer rectangle operation optimization: Remove a switch statement
outside of loop and remove a function call. Should give a little speedup when painting inside the image editor.
Diffstat (limited to 'source/blender/imbuf/IMB_imbuf_types.h')
-rw-r--r--source/blender/imbuf/IMB_imbuf_types.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source/blender/imbuf/IMB_imbuf_types.h b/source/blender/imbuf/IMB_imbuf_types.h
index dde8d4d4ab7..a3629d079a3 100644
--- a/source/blender/imbuf/IMB_imbuf_types.h
+++ b/source/blender/imbuf/IMB_imbuf_types.h
@@ -179,6 +179,7 @@ typedef struct ImBuf {
* Note that the lower 11 bits is used for storing custom flags
*/
#define IB_CUSTOM_FLAGS_MASK 0x7ff
+#define IB_ALPHA_MASK 0xff
#define PNG (1 << 30)
#define TGA (1 << 28)