1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Move GamePalette into ColourPalette.h, use namespace for it also

This commit is contained in:
ζeh Matt
2024-12-04 22:48:31 +02:00
parent 8d645c6316
commit 0e1517be4f
16 changed files with 50 additions and 59 deletions

View File

@@ -214,7 +214,7 @@ static bool SpriteImageExport(const G1Element& spriteElement, u8string_view outP
image.Height = dpi.height;
image.Depth = 8;
image.Stride = dpi.LineStride();
image.Palette = std::make_unique<GamePalette>(StandardPalette);
image.Palette = StandardPalette;
image.Pixels = std::vector<uint8_t>(pixels8, pixels8 + pixelsLen);
Imaging::WriteToFile(outPath, image, IMAGE_FORMAT::PNG);
return true;