diff tools/libgfx.h @ 2100:81fb21dd3265

Add dmGetNPlanesFromNColors() and use it.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 05 Mar 2019 15:09:18 +0200
parents 80786a28caf0
children 26f21e487fe2
line wrap: on
line diff
--- a/tools/libgfx.h	Tue Mar 05 14:51:02 2019 +0200
+++ b/tools/libgfx.h	Tue Mar 05 15:09:18 2019 +0200
@@ -132,6 +132,7 @@
 int       dmImageGetBytesPerPixel(const int format);
 int       dmImageGetBitsPerPixel(const int format);
 int       dmImageProbeGeneric(const Uint8 *buf, const size_t len, const DMImageFormat **fmt, int *index);
+int       dmGetNPlanesFromNColors(const int ncolors);
 
 BOOL dmCompareColor(const DMColor *c1, const DMColor *c2, const BOOL alpha);
 int  dmPaletteAlloc(DMPalette **ppal, const int ncolors, const int ctransp);