mirror of
https://github.com/gbdev/rgbds.git
synced 2026-09-24 06:37:07 +00:00
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:
@@ -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),
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user