From 81eb9326eb70febf511c15095caca3420676a306 Mon Sep 17 00:00:00 2001 From: bsongis Date: Sun, 6 Jul 2014 18:40:02 +0200 Subject: [PATCH] Fixes #1461 --- companion/src/flashinterface.cpp | 38 ++++++++++++++------------------ 1 file changed, 16 insertions(+), 22 deletions(-) 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