comparison tools/gfxconv.c @ 2413:902cc22018a1

Option index adjustments.
author Matti Hamalainen <ccr@tnsp.org>
date Mon, 13 Jan 2020 23:20:56 +0200
parents bc05bcfc4598
children 69a5af2eb1ea
comparison
equal deleted inserted replaced
2412:203b0fbb05d3 2413:902cc22018a1
176 { 30, 'P', "paletted" , "Use indexed/paletted output IF possible.", OPT_NONE }, 176 { 30, 'P', "paletted" , "Use indexed/paletted output IF possible.", OPT_NONE },
177 { 32, 'N', "nplanes" , "# of bitplanes (some output formats)", OPT_ARGREQ }, 177 { 32, 'N', "nplanes" , "# of bitplanes (some output formats)", OPT_ARGREQ },
178 { 34, 'B', "bpp" , "Bits per plane (some output formats)", OPT_ARGREQ }, 178 { 34, 'B', "bpp" , "Bits per plane (some output formats)", OPT_ARGREQ },
179 { 36, 'I', "interleave" , "Interleaved/planar output (some output formats)", OPT_NONE }, 179 { 36, 'I', "interleave" , "Interleaved/planar output (some output formats)", OPT_NONE },
180 { 38, 'C', "compress" , "Use compression -C <0-9>, 0 = disable, default is 9", OPT_ARGREQ }, 180 { 38, 'C', "compress" , "Use compression -C <0-9>, 0 = disable, default is 9", OPT_ARGREQ },
181 { 40, 'R', "remap" , "Remap output image colors (-R <(#RRGGBB|index):index>[,<..>][+remove] | -R @map.txt[+remove])", OPT_ARGREQ }, 181 { 42, 'R', "remap" , "Remap output image colors (-R <(#RRGGBB|index):index>[,<..>][+remove] | -R @map.txt[+remove])", OPT_ARGREQ },
182 { 42, 0, "char-rom" , "Set character ROM file to be used.", OPT_ARGREQ }, 182 { 44, 0, "char-rom" , "Set character ROM file to be used.", OPT_ARGREQ },
183 { 44, 'p', "palette" , "Set C64 palette to be used (see list with -p help).", OPT_ARGREQ }, 183 { 46, 'p', "palette" , "Set C64 palette to be used (see list with -p help).", OPT_ARGREQ },
184 }; 184 };
185 185
186 static const int optListN = sizeof(optList) / sizeof(optList[0]); 186 static const int optListN = sizeof(optList) / sizeof(optList[0]);
187 187
188 188
893 return FALSE; 893 return FALSE;
894 } 894 }
895 optSpec.compression = tmpUInt; 895 optSpec.compression = tmpUInt;
896 break; 896 break;
897 897
898 case 39: 898 case 40:
899 { 899 {
900 int tx0, ty0, tx1, ty1; 900 int tx0, ty0, tx1, ty1;
901 if (strcasecmp(optArg, "auto") == 0) 901 if (strcasecmp(optArg, "auto") == 0)
902 { 902 {
903 optCropMode = CROP_AUTO; 903 optCropMode = CROP_AUTO;
926 return FALSE; 926 return FALSE;
927 } 927 }
928 } 928 }
929 break; 929 break;
930 930
931 case 40: 931 case 42:
932 if ((tmpStr = dm_strrcasecmp(optArg, "+remove")) != NULL) 932 if ((tmpStr = dm_strrcasecmp(optArg, "+remove")) != NULL)
933 { 933 {
934 optRemapRemove = TRUE; 934 optRemapRemove = TRUE;
935 *tmpStr = 0; 935 *tmpStr = 0;
936 } 936 }
958 } 958 }
959 959
960 optRemapColors = TRUE; 960 optRemapColors = TRUE;
961 break; 961 break;
962 962
963 case 42: 963 case 44:
964 optCharROMFilename = optArg; 964 optCharROMFilename = optArg;
965 break; 965 break;
966 966
967 case 44: 967 case 46:
968 return argHandleC64PaletteOption(optArg, &optC64Palette, &optPaletteFile); 968 return argHandleC64PaletteOption(optArg, &optC64Palette, &optPaletteFile);
969 969
970 default: 970 default:
971 dmErrorMsg("Unimplemented option argument '%s'.\n", currArg); 971 dmErrorMsg("Unimplemented option argument '%s'.\n", currArg);
972 return FALSE; 972 return FALSE;