comparison 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
comparison
equal deleted inserted replaced
1288:6c8b19d1d196 1289:4b025a96ad46
1168 1168
1169 if (pdst == NULL || src == NULL) 1169 if (pdst == NULL || src == NULL)
1170 return DMERR_NULLPTR; 1170 return DMERR_NULLPTR;
1171 1171
1172 // Allocate image structure 1172 // Allocate image structure
1173 if ((*pdst = dst = dmImageAlloc(src->width, src->height)) == NULL) 1173 if ((*pdst = dst = dmImageAlloc(src->width, src->height, DM_IFMT_PALETTE, -1)) == NULL)
1174 return DMERR_MALLOC; 1174 return DMERR_MALLOC;
1175 1175
1176 // Set palette 1176 // Set palette
1177 dst->pal = (DMColor *) &dmC64Palette; 1177 dst->pal = (DMColor *) &dmC64Palette;
1178 dst->ncolors = C64_NCOLORS; 1178 dst->ncolors = C64_NCOLORS;