# HG changeset patch # User Matti Hamalainen # Date 1503066873 -10800 # Node ID 4b025a96ad46af595a1565422c29dbd2020ce5a6 # Parent 6c8b19d1d196e4ad438a03e7056f42a65c8bd127 Fix. diff -r 6c8b19d1d196 -r 4b025a96ad46 tools/lib64gfx.c --- 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