commit 50fdb0ef2cccabf5721ceeea3ed0cef89d50e83a
Author: jtothebell <j.to.the.bell@gmail.com>
AuthorDate: Tue Mar 16 17:08:30 2021 -0600
Commit: jtothebell <j.to.the.bell@gmail.com>
CommitDate: Tue Mar 16 17:08:30 2021 -0600
Fix sprite transparency for poked values > 1
---
source/graphics.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/source/graphics.cpp b/source/graphics.cpp
index aa579a1..17dcc2d 100644
--- a/source/graphics.cpp
+++ b/source/graphics.cpp
@@ -341,7 +341,7 @@ bool Graphics::isOnScreen(int x, int y) {
bool Graphics::isColorTransparent(uint8_t color) {
color = color & 0x0f;
- return (_memory->drawState.drawPaletteMap[color] >> 4) & 1U; //4th bit is transparency
+ return (_memory->drawState.drawPaletteMap[color] >> 4) > 0; //upper bits indicate transparency
}
uint8_t Graphics::getDrawPalMappedColor(uint8_t color) {