mirror of
https://github.com/red031000/nitrogfx.git
synced 2025-06-18 21:25:38 -04:00
Add -invertsize switch to PNG -> NCLR pipeline
This commit is contained in:
parent
e8ea772119
commit
7f334e6cc3
7
main.c
7
main.c
@ -565,6 +565,7 @@ void HandlePngToNtrPaletteCommand(char *inputPath, char *outputPath, int argc, c
|
||||
int bitdepth = 0;
|
||||
int compNum = 0;
|
||||
bool pcmp = false;
|
||||
bool inverted = false;
|
||||
|
||||
for (int i = 3; i < argc; i++)
|
||||
{
|
||||
@ -612,6 +613,10 @@ void HandlePngToNtrPaletteCommand(char *inputPath, char *outputPath, int argc, c
|
||||
{
|
||||
pcmp = true;
|
||||
}
|
||||
else if (strcmp(option, "-invertsize") == 0)
|
||||
{
|
||||
inverted = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
FATAL_ERROR("Unrecognized option \"%s\".\n", option);
|
||||
@ -619,7 +624,7 @@ void HandlePngToNtrPaletteCommand(char *inputPath, char *outputPath, int argc, c
|
||||
}
|
||||
|
||||
ReadPngPalette(inputPath, &palette);
|
||||
WriteNtrPalette(outputPath, &palette, ncpr, ir, bitdepth, !nopad, compNum, pcmp, false);
|
||||
WriteNtrPalette(outputPath, &palette, ncpr, ir, bitdepth, !nopad, compNum, pcmp, inverted);
|
||||
}
|
||||
|
||||
void HandleGbaToJascPaletteCommand(char *inputPath, char *outputPath, int argc UNUSED, char **argv UNUSED)
|
||||
|
Loading…
Reference in New Issue
Block a user