+#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
+