From ba43efe26290e2c6f53b82428160e7fa06ef92e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Sun, 4 Jul 2021 12:12:30 +0200 Subject: [PATCH] norm fix --- sources/PPU/Background.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/sources/PPU/Background.cpp b/sources/PPU/Background.cpp index 73277ff..e0ebf14 100644 --- a/sources/PPU/Background.cpp +++ b/sources/PPU/Background.cpp @@ -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 offset)