From 584afd74c255709ba3887efd42a255e47936b409 Mon Sep 17 00:00:00 2001 From: Pk11 Date: Wed, 20 Jan 2021 15:54:46 -0600 Subject: [PATCH] Fix drawSpecial --- source/image.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/image.cpp b/source/image.cpp index 63e0fad..4698435 100644 --- a/source/image.cpp +++ b/source/image.cpp @@ -113,7 +113,7 @@ void Image::drawSpecial(int x, int y, bool top, int layer, float scaleX, float s for(float j = 0; j < _width; j++) { u8 px = _bitmap[i * _width + j]; if(_palette[px - _palOfs] & 0x8000) - toncset(dst + i * 256 + x, px + paletteOffset, 1); + toncset(dst + i * 256 + j, px + paletteOffset, 1); } } } else {