Mercurial > hg > dmlib
diff tools/lib64gfx.c @ 2157:9a9493809b3a
Rename DM_COLFMT_* constants to DM_PIXFMT_* and the 'format' field of DMImage
and DMImageWriteSpec to 'pixfmt' to be more precise about their meaning.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 04 Jun 2019 16:27:09 +0300 |
parents | 735b55414a1e |
children | a39bf85308e5 |
line wrap: on
line diff
--- a/tools/lib64gfx.c Tue Jun 04 16:18:41 2019 +0300 +++ b/tools/lib64gfx.c Tue Jun 04 16:27:09 2019 +0300 @@ -1430,7 +1430,7 @@ // Allocate image structure if ((*pdst = dst = dmImageAlloc( - src->fmt->width, src->fmt->height, DM_COLFMT_PALETTE, -1)) == NULL) + src->fmt->width, src->fmt->height, DM_PIXFMT_PALETTE, -1)) == NULL) return DMERR_MALLOC; // Set partial palette information