1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-04 13:42:55 +01:00

Make srcX and srcY work with indexed images

This commit is contained in:
X123M3-256
2021-12-17 10:48:55 +00:00
committed by GitHub
parent b6c541c805
commit 7e158a1787

View File

@@ -92,6 +92,7 @@ std::vector<int32_t> ImageImporter::GetPixels(
if (flags & IMPORT_FLAGS::KEEP_PALETTE)
{
palettedSrc += srcX + srcY * pitch;
for (uint32_t y = 0; y < height; y++)
{
for (uint32_t x = 0; x < width; x++)