graphicscomposition/openwfcompositionengine/common/include/owfimage.h
branchNewGraphicsArchitecture
changeset 35 3aa07f06a4b7
parent 34 76efc8f9f7b4
child 39 a4b63488e0b0
--- a/graphicscomposition/openwfcompositionengine/common/include/owfimage.h	Tue Apr 20 16:24:43 2010 +0100
+++ b/graphicscomposition/openwfcompositionengine/common/include/owfimage.h	Tue Apr 20 16:38:10 2010 +0100
@@ -31,6 +31,7 @@
 
 typedef void*   OWF_DISPCTX;
 
+#define CLIP(a) if (a < 0) a = 0; else if (a > 255) a = 255;
 
 #undef USE_FLOAT_PIXEL
 
@@ -201,6 +202,7 @@
     OWFpixel*               tsColor;
 } OWF_BLEND_INFO;
 
+#define CLIP(a) if (a < 0) a = 0; else if (a > 255) a = 255;
 
 /*!---------------------------------------------------------------------------
  *  \brief Initialize image object