Mercurial > hg > dmlib
diff tools/lib64gfx.c @ 1289:4b025a96ad46
Fix.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Fri, 18 Aug 2017 17:34:33 +0300 |
parents | 5b8245e5f785 |
children | 8f71ca1900ea |
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