Mercurial > hg > dmlib
comparison tools/libgfx.h @ 2467:a11ef670bd99
Move dmCompareColor() from libgfx to gfxconv as it is used only there,
rename to dmExactCompareColor().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 16 Apr 2020 15:00:18 +0300 |
parents | f6278408bfae |
children | 637a310e3f27 |
comparison
equal
deleted
inserted
replaced
2466:213ce6d400dc | 2467:a11ef670bd99 |
---|---|
159 | 159 |
160 | 160 |
161 // | 161 // |
162 // Palette handling | 162 // Palette handling |
163 // | 163 // |
164 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, const BOOL alpha); | |
165 int dmPaletteAlloc(DMPalette **ppal, const int ncolors, const int ctransp); | 164 int dmPaletteAlloc(DMPalette **ppal, const int ncolors, const int ctransp); |
166 int dmPaletteResize(DMPalette **ppal, const int ncolors); | 165 int dmPaletteResize(DMPalette **ppal, const int ncolors); |
167 void dmPaletteFree(DMPalette *pal); | 166 void dmPaletteFree(DMPalette *pal); |
168 int dmPaletteCopy(DMPalette **pdst, const DMPalette *src); | 167 int dmPaletteCopy(DMPalette **pdst, const DMPalette *src); |
169 int dmPaletteProbeGeneric(const Uint8 *buf, const size_t len, const DMPaletteFormat **fmt, int *index); | 168 int dmPaletteProbeGeneric(const Uint8 *buf, const size_t len, const DMPaletteFormat **fmt, int *index); |