From 6e37b8f2500d63f814e0bfed32b9f6a275e2e8ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Tue, 6 Jul 2021 22:45:58 +0200 Subject: [PATCH] fixing small error --- sources/PPU/PPUUtils.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sources/PPU/PPUUtils.hpp b/sources/PPU/PPUUtils.hpp index 814f89e..106f350 100644 --- a/sources/PPU/PPUUtils.hpp +++ b/sources/PPU/PPUUtils.hpp @@ -85,13 +85,13 @@ namespace ComSquare::PPU::Utils int i = 0; int j = 0; std::for_each(bufferSrc.begin(), bufferSrc.end(), [&bufferDest, &i, &j](auto &sourceRow) { - i++; std::for_each(sourceRow.begin(), sourceRow.end(), [&bufferDest, &i, &j](auto &pixel) { if (pixel > 0xFF) bufferDest[i][j] = pixel; j++; }); j = 0; + i++; }); }