# HG changeset patch # User Matti Hamalainen # Date 1588102284 -10800 # Node ID 5621befda8d6377245ae0998ee5e1ee591f8a013 # Parent b7d340e045fbb87f7edbb9a695ba3e61df686120 Output a warning if REMAP_MAPPED is used together with palette replacement -p option. diff -r b7d340e045fb -r 5621befda8d6 tools/gfxconv.c --- 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,