mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-24 15:24:30 +01:00
Merge pull request #23322 from ZehMatt/drawing-refactor
Refactor some code around the color palette
This commit is contained in:
@@ -63,7 +63,7 @@ static bool WriteDpiToFile(std::string_view path, const DrawPixelInfo& dpi, cons
|
||||
image.Height = dpi.height;
|
||||
image.Depth = 8;
|
||||
image.Stride = dpi.LineStride();
|
||||
image.Palette = std::make_unique<GamePalette>(palette);
|
||||
image.Palette = palette;
|
||||
image.Pixels = std::vector<uint8_t>(pixels8, pixels8 + pixelsLen);
|
||||
Imaging::WriteToFile(path, image, IMAGE_FORMAT::PNG);
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user