X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/e6c79f60c611f9734b8d237ba11537c66a35e2b3..454461a6d6ae73595b8e75c81b9a2946bd573477:/main/bsod.cpp diff --git a/main/bsod.cpp b/main/bsod.cpp index 3352a29e..bb4c7ad7 100644 --- a/main/bsod.cpp +++ b/main/bsod.cpp @@ -107,7 +107,26 @@ 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) */ + { + srand(time(0)); + int r = rand(); + unsigned int col = 0; + if (r & 1) + col |= 0x800000; + if (r & 2) + col |= 0x008000; + if (r & 4) + col |= 0x0000c0; + p.setBackgroundColor(gRGB(col)); + } +#else + p.setBackgroundColor(gRGB(0x008000)); +#endif + p.setForegroundColor(gRGB(0xFFFFFF)); ePtr font = new gFont("Regular", 20);