fix colors
[enigma2.git] / main / bsod.cpp
index 784b2171997f0315f6691692635d5a519b23953d..bb4c7ad7c27efc0fcc4177b0087deae4784a5ff0 100644 (file)
@@ -112,15 +112,16 @@ void bsodFatal()
                        p.setBackgroundColor(gRGB(0x0000C0));
                else if (ENIGMA2_CHECKOUT_TAG[0] == 'D') /* dated checkout (daily experimental build) */
                {
                        p.setBackgroundColor(gRGB(0x0000C0));
                else if (ENIGMA2_CHECKOUT_TAG[0] == 'D') /* dated checkout (daily experimental build) */
                {
+                       srand(time(0));
                        int r = rand();
                        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;
                        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));
                }
 #else
                        p.setBackgroundColor(gRGB(0x008000));