mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 10:12:06 +00:00
Fix generating a palette overriding a previous pal spec (#1415)
This commit is contained in:
@@ -547,6 +547,7 @@ static void generatePalSpec(Png const &png) {
|
||||
}
|
||||
|
||||
// Fill in the palette spec
|
||||
options.palSpec.clear();
|
||||
options.palSpec.emplace_back(); // A single palette, with `#00000000`s (transparent)
|
||||
assume(options.palSpec.size() == 1);
|
||||
if (embPalSize > options.maxOpaqueColors()) { // Ignore extraneous colors if they are unused
|
||||
|
||||
1
test/gfx/multiple_manual_pals.flags
Normal file
1
test/gfx/multiple_manual_pals.flags
Normal file
@@ -0,0 +1 @@
|
||||
-c #0094ff,#000,#fff,#0021ff -c embedded
|
||||
BIN
test/gfx/multiple_manual_pals.png
Normal file
BIN
test/gfx/multiple_manual_pals.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 118 B |
Reference in New Issue
Block a user