mirror of https://github.com/OpenRCT2/OpenRCT2.git
Make srcX and srcY work with indexed images
This commit is contained in:
parent
b6c541c805
commit
7e158a1787
|
@ -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++)
|
||||
|
|
Loading…
Reference in New Issue