commit ea531f4f945e2cdd59da847b738564839362efbb
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Wed Aug 11 21:59:01 2021 -0600
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Wed Aug 11 21:59:01 2021 -0600
fix garbled swapped pixels in sppr flipx
---
source/graphics.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/source/graphics.cpp b/source/graphics.cpp
index 4f3c3de..fd271b4 100644
--- a/source/graphics.cpp
+++ b/source/graphics.cpp
@@ -292,8 +292,8 @@ void Graphics::copyStretchSpriteToScreen(
uint8_t bothPix = spr[combinedPixIdx];
uint8_t c = (pixIndex >> 16) % 2 == 0
- ? bothPix >> 4 //just first 4 bits
- : bothPix & 0x0f; //just last 4 bits
+ ? bothPix & 0x0f //just first 4 bits
+ : bothPix >> 4; //just last 4 bits
if (isColorTransparent(c) == false) {
_setPixelFromSprite(scr_x + x, scr_y + y, c);
}