Fixed compiling on some Qt 5.5.

This commit is contained in:
Leonardo 2017-12-20 18:18:22 -08:00
parent 50bb299095
commit 5a7faa4323

View file

@ -205,7 +205,7 @@ void lcRenderDialog::Update()
{
for (int x = 0; x < Width; x++)
{
mImage.setPixelColor(x, y, QColor::fromRgb(Pixels[0], Pixels[1], Pixels[2], Pixels[3]));
mImage.setPixel(x, y, qRgba(Pixels[0], Pixels[1], Pixels[2], Pixels[3]));
Pixels += 4;
}
}