mirror of
https://github.com/gbdev/rgbds.git
synced 2026-05-08 10:59:36 +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
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
-c #0094ff,#000,#fff,#0021ff -c embedded
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 118 B |
Reference in New Issue
Block a user