diff --git a/companion/src/flashinterface.cpp b/companion/src/flashinterface.cpp index 0104cd6c4..dfe6cfbaa 100644 --- a/companion/src/flashinterface.cpp +++ b/companion/src/flashinterface.cpp @@ -219,21 +219,13 @@ bool FlashInterface::setSplash(const QImage & newsplash) QColor color; QByteArray splash; if (splash_format == QImage::Format_Indexed8) { - unsigned int idx = 0; - for (unsigned int y=0; y 0) { for (unsigned int y=0; y> 4) : (byte & 0x0F); z = 255-(z*255)/15; QRgb rgb = qRgb(z, z, z); image.setPixel(x, y, rgb); @@ -293,9 +285,11 @@ QImage FlashInterface::getSplash() else { QImage image(splash_width, splash_height, QImage::Format_Mono); if (splash_offset > 0) { - for (unsigned int y=0; y