Mercurial > hg > dmlib
changeset 2452:0fdc14005e43
Rename dmRemapImageColors() to more accurate dmRemoveUnusedImageColors().
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Wed, 15 Apr 2020 13:51:22 +0300 |
parents | 2e2a6c344371 |
children | 11151bc8d056 |
files | tools/gfxconv.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/gfxconv.c Wed Apr 15 13:50:28 2020 +0300 +++ b/tools/gfxconv.c Wed Apr 15 13:51:22 2020 +0300 @@ -1062,7 +1062,7 @@ } -int dmRemapImageColors(DMImage **pdst, const DMImage *src) +int dmRemoveUnusedImageColors(DMImage **pdst, const DMImage *src) { DMPalette *tmpPal = NULL; int *mapping = dmMalloc(src->pal->ncolors * sizeof(int)); @@ -1488,7 +1488,7 @@ BOOL allocated = FALSE; if (optRemapColors && image->pixfmt == DM_PIXFMT_PALETTE) { - if ((res = dmRemapImageColors(&image, pimage)) != DMERR_OK) + if ((res = dmRemoveUnusedImageColors(&image, pimage)) != DMERR_OK) return res; allocated = TRUE;