Fix detection of tiles with too many colors (#1546)

This commit is contained in:
Sylvie
2024-10-20 13:51:39 -04:00
committed by GitHub
parent b33aa31944
commit 90286ccbbc
3 changed files with 29 additions and 34 deletions

View File

@@ -18,12 +18,8 @@ private:
std::array<uint16_t, capacity> _colorIndices{UINT16_MAX, UINT16_MAX, UINT16_MAX, UINT16_MAX};
public:
/*
* Adds the specified color to the set, or **silently drops it** if the set is full.
*
* Returns whether the color was unique.
*/
bool add(uint16_t color);
// Adds the specified color to the set, or **silently drops it** if the set is full.
void add(uint16_t color);
enum ComparisonResult {
NEITHER,