changeset 2500:5621befda8d6

Output a warning if REMAP_MAPPED is used together with palette replacement -p option.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 28 Apr 2020 22:31:24 +0300
parents b7d340e045fb
children 62b7dfd5bfa5
files tools/gfxconv.c
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/gfxconv.c	Tue Apr 28 21:11:05 2020 +0300
+++ b/tools/gfxconv.c	Tue Apr 28 22:31:24 2020 +0300
@@ -2036,6 +2036,12 @@
                 break;
 
             case REMAP_MAPPED:
+                if (optPaletteData != NULL)
+                {
+                    dmErrorMsg(
+                        "WARNING: Color remapping requested, but palette replacement (-p) set. This will have no effect.\n");
+                }
+
                 if ((res = dmMapImageColors(
                     &image, pimage, optRemapTable, optNRemapTable,
                     optRemapMaxDist, optRemapNoMatchColor,