Fix transparency handling

Ensure that the color count is properly used, and that
transparency is not counted as a color when packing palettes
This commit is contained in:
ISSOtm
2022-07-02 17:04:17 +02:00
committed by Eldred Habert
parent 7d54145e56
commit 7311fc9ef8
4 changed files with 42 additions and 7 deletions
+1 -1
View File
@@ -401,7 +401,7 @@ std::tuple<DefaultInitVec<size_t>, size_t>
continue;
}
options.verbosePrint(Options::VERB_DEBUG, "%zu/%zu: Rel size: %f (size = %zu)\n", i,
options.verbosePrint(Options::VERB_DEBUG, "%zu/%zu: Rel size: %f (size = %zu)\n", i + 1,
assignments.size(), assignments[i].relSizeOf(protoPal),
protoPal.size());
if (assignments[i].relSizeOf(protoPal) < bestRelSize) {