Mercurial > hg > dmlib
diff tools/lib64gfx.h @ 2586:9807ae37ad69
Require stdbool.h, we require C11 now.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 08 Dec 2022 15:59:22 +0200 |
parents | c6ee41fd98dd |
children | 0d6aa5cae517 |
line wrap: on
line diff
--- a/tools/lib64gfx.h Thu Dec 08 15:56:36 2022 +0200 +++ b/tools/lib64gfx.h Thu Dec 08 15:59:22 2022 +0200 @@ -192,7 +192,7 @@ /* // XXX These are not actually used yet (if ever) int dither; // Dither mode (D64_DITH_*) - BOOL aspect; // Render using pixel aspectX/aspectY, FALSE = par=1:1 + bool aspect; // Render using pixel aspectX/aspectY, false = par=1:1 */ } DMC64ImageConvSpec; @@ -390,10 +390,10 @@ // int dmC64ProbeBMP(const DMGrowBuf *buf, const DMC64ImageFormat **fmt); -int dmC64PaletteFromC64Palette(DMPalette **ppal, const DMC64Palette *cpal, const BOOL mixed); -int dmC64SetImagePalette(DMImage *img, const DMC64ImageConvSpec *spec, const BOOL mixed); +int dmC64PaletteFromC64Palette(DMPalette **ppal, const DMC64Palette *cpal, const bool mixed); +int dmC64SetImagePalette(DMImage *img, const DMC64ImageConvSpec *spec, const bool mixed); -BOOL dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr); +bool dmCompareAddr16(const DMGrowBuf *buf, const size_t offs, const Uint16 addr); int dmC64MemBlockAlloc(DMC64MemBlock *blk, const size_t size); int dmC64MemBlockCopy(DMC64MemBlock *dst, const DMC64MemBlock *src); @@ -407,7 +407,7 @@ // Encoding and decoding of formats and images int dmC64ConvertCSDataToImage(DMImage *img, const int xoffs, const int yoffs, const Uint8 *buf, - const int width, const int height, const BOOL multicolor, + const int width, const int height, const bool multicolor, const int *colors); const char *dmC64GetOpSubjectName(const int subject); @@ -420,7 +420,7 @@ int dmC64DecodeGenericBMP(DMC64Image *img, const DMGrowBuf *buf, const DMC64ImageFormat *fmt); -int dmC64EncodeGenericBMP(const BOOL allocate, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); +int dmC64EncodeGenericBMP(const bool allocate, DMGrowBuf *buf, const DMC64Image *img, const DMC64ImageFormat *fmt); int dmC64ConvertBMP2Image(DMImage **pdst, const DMC64Image *src, const DMC64ImageConvSpec *spec); int dmC64ConvertImage2BMP(DMC64Image **pdst, const DMImage *src, const DMC64ImageFormat *fmt, const DMC64ImageConvSpec *spec);