mirror of
https://github.com/zoriya/ComSquare.git
synced 2025-12-22 23:25:22 +00:00
whao it seems to work
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user