include/SDL_pixels.h
branchSDL-1.3
changeset 1681 80a5e6a4e1e2
parent 1676 e136f3ffdc1b
child 1682 7ae8018b2e5d
     1.1 --- a/include/SDL_pixels.h	Wed Jun 14 08:41:13 2006 +0000
     1.2 +++ b/include/SDL_pixels.h	Thu Jun 15 07:07:07 2006 +0000
     1.3 @@ -108,7 +108,13 @@
     1.4  #define SDL_BITSPERPIXEL(X)	(((X) >> 8) & 0xFF)
     1.5  #define SDL_BYTESPERPIXEL(X)	(((X) >> 0) & 0xFF)
     1.6  
     1.7 -#define SDL_ISPIXELFORMAT_FOURCC(format)    (((format) & 0x8000000) != 0)
     1.8 +#define SDL_ISPIXELFORMAT_INDEXED(format)   \
     1.9 +    ((SDL_PIXELTYPE(format) == SDL_PixelType_Index1) || \
    1.10 +     (SDL_PIXELTYPE(format) == SDL_PixelType_Index4) || \
    1.11 +     (SDL_PIXELTYPE(format) == SDL_PixelType_Index8))
    1.12 +
    1.13 +#define SDL_ISPIXELFORMAT_FOURCC(format)    \
    1.14 +    ((format) && !((format) & 0x8000000))
    1.15  
    1.16  enum
    1.17  {