mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-04 02:36:03 +00:00
refactor ppu x and y and little clean up
This commit is contained in:
@@ -93,11 +93,11 @@ namespace ComSquare::PPU
|
||||
for (int i = 0; i < this->_characterNbPixels.y; i++) {
|
||||
for (int j = 0; j < this->_characterNbPixels.x; j++) {
|
||||
//std::copy(this->_tileBuffer.begin(), this->_tileBuffer.begin() + this->_characterNbPixels.x, this->buffer[pos.x].begin() )
|
||||
this->buffer[pos.x][pos.y] = this->_tileBuffer[i][j];
|
||||
pos.x++;
|
||||
this->buffer[pos.y + i][pos.x + j] = this->_tileBuffer[i][j];
|
||||
//pos.x++;
|
||||
}
|
||||
pos.x -= this->_characterNbPixels.x;
|
||||
pos.y++;
|
||||
//pos.x -= this->_characterNbPixels.x;
|
||||
//pos.y++;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user