mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-05-29 17:02:21 +00:00
fixing getCharacterSize marge bg and reference color when it is 0
This commit is contained in:
@@ -61,7 +61,7 @@ namespace ComSquare::PPU
|
||||
for (int j = 0; j < this->_characterSize.x; j++) {
|
||||
reference = getTilePixelReference(graphicAddress, index);
|
||||
color = getRealColor(palette[reference]);
|
||||
if (tileData.tilePriority == this->priority)
|
||||
if (tileData.tilePriority == this->priority && reference != 0) // reference 0 is considered as transparency
|
||||
this->buffer[pos.x][pos.y] = color;
|
||||
if (j == 7) {
|
||||
index = -1;
|
||||
|
||||
Reference in New Issue
Block a user