Mercurial > sdl-ios-xcode
diff include/SDL_pixels.h @ 1681:80a5e6a4e1e2 SDL-1.3
Working on paletted display and texture support (two different issues)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Thu, 15 Jun 2006 07:07:07 +0000 |
parents | e136f3ffdc1b |
children | 7ae8018b2e5d |
line wrap: on
line diff
--- a/include/SDL_pixels.h Wed Jun 14 08:41:13 2006 +0000 +++ b/include/SDL_pixels.h Thu Jun 15 07:07:07 2006 +0000 @@ -108,7 +108,13 @@ #define SDL_BITSPERPIXEL(X) (((X) >> 8) & 0xFF) #define SDL_BYTESPERPIXEL(X) (((X) >> 0) & 0xFF) -#define SDL_ISPIXELFORMAT_FOURCC(format) (((format) & 0x8000000) != 0) +#define SDL_ISPIXELFORMAT_INDEXED(format) \ + ((SDL_PIXELTYPE(format) == SDL_PixelType_Index1) || \ + (SDL_PIXELTYPE(format) == SDL_PixelType_Index4) || \ + (SDL_PIXELTYPE(format) == SDL_PixelType_Index8)) + +#define SDL_ISPIXELFORMAT_FOURCC(format) \ + ((format) && !((format) & 0x8000000)) enum {