Fixed a bug in X11 shaping that refused to use color-key mode.

This commit is contained in:
Eli Gottlieb 2010-08-10 16:10:26 -04:00
parent 5f2c8902e0
commit 25775cdb23
3 changed files with 6 additions and 4 deletions

View file

@ -89,6 +89,9 @@ typedef enum {
/** \brief A color key is applied. */
ShapeModeColorKey
} WindowShapeMode;
#define SDL_SHAPEMODEALPHA(mode) (mode == ShapeModeDefault || mode == ShapeModeBinarizeAlpha || mode == ShapeModeReverseBinarizeAlpha)
/** \brief A union containing parameters for shaped windows. */
typedef union {
/** \brief a cutoff alpha value for binarization of the window shape's alpha channel. */