From 5c392355566dce59c1e486ae934228aa9a5fa2bc Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Wed, 16 Apr 2008 00:38:28 +0000 Subject: [PATCH 1/1] fix colors --- main/bsod.cpp | 5 +++-- 1 file 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)); -- 2.30.2