aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-04-16 00:38:28 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-04-16 00:38:28 +0000
commit5c392355566dce59c1e486ae934228aa9a5fa2bc (patch)
tree181e47bb19015cd7bd8b4a09ed9227c33632663e
parent48578a3ba51e23d50acef6abc30cb599c445b1cd (diff)
downloadenigma2-5c392355566dce59c1e486ae934228aa9a5fa2bc.tar.gz
enigma2-5c392355566dce59c1e486ae934228aa9a5fa2bc.zip
fix colors
-rw-r--r--main/bsod.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/main/bsod.cpp b/main/bsod.cpp
index 784b2171..bb4c7ad7 100644
--- a/main/bsod.cpp
+++ b/main/bsod.cpp
@@ -112,15 +112,16 @@ void bsodFatal()
p.setBackgroundColor(gRGB(0x0000C0));
else if (ENIGMA2_CHECKOUT_TAG[0] == 'D') /* dated checkout (daily experimental build) */
{
+ srand(time(0));
int r = rand();
- unsigned int col;
+ unsigned int col = 0;
if (r & 1)
col |= 0x800000;
if (r & 2)
col |= 0x008000;
if (r & 4)
col |= 0x0000c0;
- p.setBackgroundColor(gRGB(r));
+ p.setBackgroundColor(gRGB(col));
}
#else
p.setBackgroundColor(gRGB(0x008000));