Remove "undocumented" -b option to force a bit depth.
This commit is contained in:
@@ -50,7 +50,6 @@ extern unsigned char Palette0, SPC700sh, OffBy1Line, DSPDisable,
|
|||||||
int getopt(int argc, char *const argv[], const char *optstring);
|
int getopt(int argc, char *const argv[], const char *optstring);
|
||||||
extern char *optarg;
|
extern char *optarg;
|
||||||
extern int optind, opterr, optopt;
|
extern int optind, opterr, optopt;
|
||||||
extern int BitDepth;
|
|
||||||
|
|
||||||
void ccmdline(void);
|
void ccmdline(void);
|
||||||
|
|
||||||
@@ -140,21 +139,6 @@ int main (int argc, char *argv[]) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
case 'b': {
|
|
||||||
// What was this? - DDOI
|
|
||||||
//SoundCompD = 1;
|
|
||||||
if(optarg != NULL)
|
|
||||||
BitDepth = atoi(optarg);
|
|
||||||
if (BitDepth != 8 && BitDepth != 16 &&
|
|
||||||
BitDepth != 24 && BitDepth != 32)
|
|
||||||
{
|
|
||||||
printf ("%d is not a valid bit depth.\n", BitDepth);
|
|
||||||
exit(1);
|
|
||||||
}
|
|
||||||
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
case 'c': {
|
case 'c': {
|
||||||
if (strcmp(optarg,"b") == 0) {
|
if (strcmp(optarg,"b") == 0) {
|
||||||
printf("\nRemove background color in 256 modes not implemented!\n");
|
printf("\nRemove background color in 256 modes not implemented!\n");
|
||||||
|
|||||||
Reference in New Issue
Block a user