From: Felix Domke Date: Tue, 15 Apr 2008 23:55:19 +0000 (+0000) Subject: make our lifes a bit more colorful. X-Git-Tag: 2.6.0~1337 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/f43d6747ef31b5a2e03e7abe08f7cc77c282404e?ds=sidebyside make our lifes a bit more colorful. --- 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 font = new gFont("Regular", 20);