From: H.G. Muller Date: Sun, 21 Oct 2012 08:21:33 +0000 (+0200) Subject: Fix button-border-width bug in monoMode X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=d92feb6fa2927dc74eda4d9f1fca2265de4b95d1;p=xboard.git Fix button-border-width bug in monoMode The kludge of signalling we are dealing wih a button rather than a label was wrongly implemented in case of momoMode. --- diff --git a/xoptions.c b/xoptions.c index 08e18a0..b3c88c4 100644 --- a/xoptions.c +++ b/xoptions.c @@ -709,8 +709,8 @@ SetPositionAndSize (Arg *args, Widget leftNeigbor, Widget topNeigbor, int b, int if(!appData.monoMode) { if(!b && appData.dialogColor[0]) XtSetArg(args[j], XtNbackground, dialogColor), j++; if(b == 3 && appData.buttonColor[0]) XtSetArg(args[j], XtNbackground, buttonColor), j++; - if(b == 3) b = 1; } + if(b == 3) b = 1; // border XtSetArg(args[j], XtNborderWidth, b); j++; return j;