Fix RGBGFX to support -C/--color-curve in -r/--reverse mode (#2110)

Clarifies error message when RGBGFX reverse mode has `-c` mismatching `-p`.
This commit is contained in:
Rangi
2026-09-18 17:35:22 -04:00
committed by GitHub
parent 0286d4119e
commit 89403ca23b
9 changed files with 75 additions and 39 deletions
+4 -4
View File
@@ -542,10 +542,10 @@ static void parseGBCFile(char const *filename, std::filebuf &file) {
}
options.palSpec.push_back({
Rgba::fromCGBColor(toWord(buf[0], buf[1])),
Rgba::fromCGBColor(toWord(buf[2], buf[3])),
Rgba::fromCGBColor(toWord(buf[4], buf[5])),
Rgba::fromCGBColor(toWord(buf[6], buf[7])),
Rgba::fromCGBColor(toWord(buf[0], buf[1]), false),
Rgba::fromCGBColor(toWord(buf[2], buf[3]), false),
Rgba::fromCGBColor(toWord(buf[4], buf[5]), false),
Rgba::fromCGBColor(toWord(buf[6], buf[7]), false),
});
}
}