diff tools/libgfx.h @ 1733:59c2b08a80a6

Make some palette allocation functions public.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 08 Jun 2018 22:09:24 +0300
parents a549d33d543a
children 027fb7313d85
line wrap: on
line diff
--- a/tools/libgfx.h	Fri Jun 08 22:09:00 2018 +0300
+++ b/tools/libgfx.h	Fri Jun 08 22:09:24 2018 +0300
@@ -119,6 +119,8 @@
 int       dmImageProbeGeneric(const Uint8 *buf, const size_t len, const DMImageFormat **fmt, int *index);
 
 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, BOOL alpha);
+BOOL dmPaletteAlloc(DMColor **ppal, int ncolors, int ctransp);
+BOOL dmImagePaletteAlloc(DMImage *img, int ncolors, int ctransp);
 
 
 int dmWriteImageData(const DMImage *img, void *cbdata, int (*writeRowCB)(void *, const Uint8 *, const size_t), const DMImageConvSpec *spec);