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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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++)