mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-19 21:55:11 +00:00
fixing some registers and update registers related to backgrounds
This commit is contained in:
@@ -61,8 +61,8 @@ 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 && reference != 0) // reference 0 is considered as transparency
|
||||
this->buffer[pos.x][pos.y] = color;
|
||||
if (tileData.tilePriority == this->priority) // reference 0 is considered as transparency
|
||||
this->buffer[pos.x][pos.y] = (reference) ? color : 0;
|
||||
if (j == 7) {
|
||||
index = -1;
|
||||
// to go to the tile to the right
|
||||
|
||||
Reference in New Issue
Block a user