include/SDL_shape.h
changeset 4846 4f1573996a65
parent 4807 c9eb95f29770
child 4849 0b918c186938
     1.1 --- a/include/SDL_shape.h	Tue Aug 10 15:45:59 2010 -0400
     1.2 +++ b/include/SDL_shape.h	Tue Aug 10 16:10:26 2010 -0400
     1.3 @@ -89,6 +89,9 @@
     1.4  	/** \brief A color key is applied. */
     1.5  	ShapeModeColorKey
     1.6  } WindowShapeMode;
     1.7 +
     1.8 +#define SDL_SHAPEMODEALPHA(mode) (mode == ShapeModeDefault || mode == ShapeModeBinarizeAlpha || mode == ShapeModeReverseBinarizeAlpha)
     1.9 +
    1.10  /** \brief A union containing parameters for shaped windows. */
    1.11  typedef union {
    1.12  	/** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */