mirror of
https://github.com/zoriya/ComSquare.git
synced 2026-06-03 10:26:36 +00:00
norm fix
This commit is contained in:
@@ -90,9 +90,11 @@ namespace ComSquare::PPU
|
||||
Utils::HFlipArray(this->_tileBuffer, {this->_characterNbPixels.x, this->_characterNbPixels.y});
|
||||
if (tileData.horizontalFlip)
|
||||
Utils::VFlipArray(this->_tileBuffer, {this->_characterNbPixels.x, this->_characterNbPixels.y});
|
||||
std::for_each(this->_tileBuffer.begin(), this->_tileBuffer.begin() + this->_characterNbPixels.y, [this, &pos](const auto &row) {
|
||||
std::move(row.begin(), row.begin() + this->_characterNbPixels.x, this->buffer[pos.y++].begin() + pos.x);
|
||||
});
|
||||
std::for_each(this->_tileBuffer.begin(), this->_tileBuffer.begin() + this->_characterNbPixels.y,
|
||||
[this, &pos](const auto &row) {
|
||||
std::move(row.begin(), row.begin() + this->_characterNbPixels.x,
|
||||
this->buffer[pos.y++].begin() + pos.x);
|
||||
});
|
||||
}
|
||||
|
||||
void Background::_drawBasicTileMap(uint16_t baseAddress, Vector2<int> offset)
|
||||
|
||||
Reference in New Issue
Block a user