diff -r 76efc8f9f7b4 -r 3aa07f06a4b7 graphicscomposition/openwfcompositionengine/common/include/owfimage.h --- 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