Refactor reading BGR values from g1 palette entries (#25778)

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2026-01-11 20:01:05 +01:00
1 parent ba3fc759fb
commit 50c77a074c
9 files changed
+137 -99

No files matched your search

+7
View File
@@ -643,4 +643,11 @@ namespace OpenRCT2
}
_entries.push_back(std::move(newg1));
}
void ImageTable::addPalette(const G1Palette& g1)
{
Guard::Assert(g1.flags.has(G1Flag::isPalette));
const auto base = reinterpret_cast<const G1Element*>(&g1);
AddImage(base);
}
} // namespace OpenRCT2