changeset 1289:4b025a96ad46

Fix.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 18 Aug 2017 17:34:33 +0300
parents 6c8b19d1d196
children e7dc9bb9777e
files tools/lib64gfx.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tools/lib64gfx.c	Fri Aug 18 17:32:19 2017 +0300
+++ b/tools/lib64gfx.c	Fri Aug 18 17:34:33 2017 +0300
@@ -1170,7 +1170,7 @@
         return DMERR_NULLPTR;
 
     // Allocate image structure
-    if ((*pdst = dst = dmImageAlloc(src->width, src->height)) == NULL)
+    if ((*pdst = dst = dmImageAlloc(src->width, src->height, DM_IFMT_PALETTE, -1)) == NULL)
         return DMERR_MALLOC;
 
     // Set palette