changeset 2497:ea5929b04a26

Oooops, forgot to commit these changes to color remapping stuff. 100L.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 28 Apr 2020 20:58:55 +0300
parents 6a6ed3eeded5
children 2e38e1512a22
files tools/gfxconv.c
diffstat 1 files changed, 8 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Tue Apr 28 20:55:34 2020 +0300
+++ b/tools/gfxconv.c	Tue Apr 28 20:58:55 2020 +0300
@@ -2036,9 +2036,12 @@
                 break;
 
             case REMAP_MAPPED:
-                if ((res = dmMapImageColors(&image, pimage,
-                    optRemapTable, optNRemapTable, optRemapRemove)) != DMERR_OK)
+                if ((res = dmMapImageColors(
+                    &image, pimage, optRemapTable, optNRemapTable,
+                    optRemapMaxDist, optRemapNoMatchColor,
+                    optRemapMatchAlpha, optRemapRemove)) != DMERR_OK)
                     goto out;
+
                 allocated = TRUE;
                 break;
 
@@ -2050,10 +2053,10 @@
                     goto out;
                 }
 
-                if ((res = dmRemapImageColors(&image, pimage,
-                    optPaletteData, optRemapMatchAlpha,
+                if ((res = dmRemapImageColors(
+                    &image, pimage, optPaletteData,
                     optRemapMaxDist, optRemapNoMatchColor,
-                    optRemapRemove)) != DMERR_OK)
+                    optRemapMatchAlpha, optRemapRemove)) != DMERR_OK)
                     goto out;
 
                 allocated = TRUE;