# HG changeset patch # User Matti Hamalainen # Date 1586947882 -10800 # Node ID 0fdc14005e436a6500341e8c5fda8904e11f1c0e # Parent 2e2a6c34437124763aa6d78334ec07d9cef59139 Rename dmRemapImageColors() to more accurate dmRemoveUnusedImageColors(). diff -r 2e2a6c344371 -r 0fdc14005e43 tools/gfxconv.c --- 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;