whao it seems to work

This commit is contained in:
Clément Le Bihan
2021-06-08 23:07:24 +02:00
parent 81a32100f1
commit b8acc1520a
4 changed files with 13 additions and 13 deletions

View File

@@ -68,11 +68,7 @@ namespace ComSquare::Renderer
if (y >= this->_videoMode.height)
throw InvalidPixelPosition("Height", y, this->_videoMode.height);
sf::Color pixels;
pixels.r = rgba >> 24U;
pixels.g = rgba >> 16U;
pixels.b = rgba >> 8U;
pixels.a = rgba >> 0U;
sf::Color pixels(rgba);
this->_pixelBuffer[this->_videoMode.width * y + x] = pixels;
}