aboutsummaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorFelix Domke <tmbinc@elitedvb.net>2008-04-15 23:55:19 +0000
committerFelix Domke <tmbinc@elitedvb.net>2008-04-15 23:55:19 +0000
commitf43d6747ef31b5a2e03e7abe08f7cc77c282404e (patch)
treef9284a83bad5921257d19fd2cc31302a33fde21b /main
parentb6f18ee5bbb6ea79f73b92e65cfe854a7da24934 (diff)
downloadenigma2-f43d6747ef31b5a2e03e7abe08f7cc77c282404e.tar.gz
enigma2-f43d6747ef31b5a2e03e7abe08f7cc77c282404e.zip
make our lifes a bit more colorful.
Diffstat (limited to 'main')
-rw-r--r--main/bsod.cpp20
1 files changed, 19 insertions, 1 deletions
diff --git a/main/bsod.cpp b/main/bsod.cpp
index 3352a29e..784b2171 100644
--- a/main/bsod.cpp
+++ b/main/bsod.cpp
@@ -107,7 +107,25 @@ void bsodFatal()
gPainter p(my_dc);
p.resetOffset();
p.resetClip(eRect(ePoint(0, 0), my_dc->size()));
- p.setBackgroundColor(gRGB(0x0000C0));
+#ifdef ENIGMA2_CHECKOUT_TAG
+ if (ENIGMA2_CHECKOUT_TAG[0] == 'T') /* tagged checkout (release) */
+ p.setBackgroundColor(gRGB(0x0000C0));
+ else if (ENIGMA2_CHECKOUT_TAG[0] == 'D') /* dated checkout (daily experimental build) */
+ {
+ int r = rand();
+ unsigned int col;
+ if (r & 1)
+ col |= 0x800000;
+ if (r & 2)
+ col |= 0x008000;
+ if (r & 4)
+ col |= 0x0000c0;
+ p.setBackgroundColor(gRGB(r));
+ }
+#else
+ p.setBackgroundColor(gRGB(0x008000));
+#endif
+
p.setForegroundColor(gRGB(0xFFFFFF));
ePtr<gFont> font = new gFont("Regular", 20);