forked from rosebudai/OpenRCT2-Web
Refactor reading BGR values from g1 palette entries (#25778)
This commit is contained in:
1 parent
ba3fc759fb
commit
50c77a074c
9 files changed
+137
-99
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user