changeset 1733:59c2b08a80a6

Make some palette allocation functions public.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 08 Jun 2018 22:09:24 +0300
parents 07111a60cd4e
children 183d503b17a7
files tools/libgfx.h
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
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);