Fix rgbgfx -Z palette overgeneration on merged color sets (#1912)

- Fix logic for color set comparison (which affects sorting them)
- Prune color sets which are proper subsets of newly-encountered ones
  (a comment implied we were already doing this, but we weren't)
- Add more verbose logging to debug this behavior
This commit is contained in:
vulcandth
2026-06-07 08:55:05 -05:00
committed by GitHub
parent 075f132d77
commit 998f636495
6 changed files with 100 additions and 29 deletions
+1 -5
View File
@@ -21,11 +21,7 @@ public:
// Adds the specified color to the set, or **silently drops it** if the set is full.
void add(uint16_t color);
enum ComparisonResult {
NEITHER,
WE_BIGGER,
THEY_BIGGER = -1,
};
enum ComparisonResult { INCOMPARABLE, SUBSET_OR_EQUAL, STRICT_SUPERSET };
ComparisonResult compare(ColorSet const &other) const;
size_t size() const;