From: H.G. Muller Date: Thu, 19 Jan 2012 21:21:38 +0000 (+0100) Subject: Make New Variant dialog visible in mono-mode X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=621d1288d1b721ce3010e510a5c49d0bbeb6802d;p=xboard.git Make New Variant dialog visible in mono-mode All colored buttons did get a black background, and also black text... Use timer background color in stead, which is white. --- diff --git a/xoptions.c b/xoptions.c index 0ace8b6..688f3f3 100644 --- a/xoptions.c +++ b/xoptions.c @@ -83,6 +83,7 @@ extern char *getenv(); // [HGM] the following code for makng menu popups was cloned from the FileNamePopUp routines static Widget previous = NULL; +extern Pixel timerBackgroundPixel; void SetFocus (Widget w, XtPointer data, XEvent *event, Boolean *b) @@ -727,7 +728,7 @@ SetColor (char *colorName, Option *box) } else { buttonColor = *(Pixel *) vTo.addr; } - } else buttonColor = (Pixel) 0; + } else buttonColor = timerBackgroundPixel; XtSetArg(args[0], XtNbackground, buttonColor);; XtSetValues(box->handle, args, 1); }