X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xoptions.c;h=f80d09b104e39e693613d6ce6a8a78a616b8086b;hb=08aa97a16435e4569975d203c7e1f3050b207d8a;hp=b95cb2274d6c8249251db7e030698eb822e4364f;hpb=b8dda57c7dbcd5942d43523e7e1dbb3755348649;p=xboard.git diff --git a/xoptions.c b/xoptions.c index b95cb22..f80d09b 100644 --- a/xoptions.c +++ b/xoptions.c @@ -409,7 +409,7 @@ Widget shells[NrOfDialogs]; DialogClass parents[NrOfDialogs]; WindowPlacement *wp[NrOfDialogs] = { // Beware! Order must correspond to DialogClass enum NULL, &wpComment, &wpTags, NULL, NULL, NULL, NULL, &wpMoveHistory, &wpGameList, &wpEngineOutput, &wpEvalGraph, - NULL, NULL, NULL, NULL, &wpMain + NULL, NULL, NULL, NULL, /*&wpMain*/ NULL }; int @@ -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; @@ -883,7 +883,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent #if ENABLE_NLS if(option[i].choice) XtSetArg(args[j], XtNfontSet, *(XFontSet*)option[i].choice), j++; #else - if(option[i].choice) XtSetArg(args[j], XtNfont, *(XFontStruct*)option[i].choice), j++; + if(option[i].choice) XtSetArg(args[j], XtNfont, (XFontStruct*)option[i].choice), j++; #endif XtSetArg(args[j], XtNresizable, False); j++; XtSetArg(args[j], XtNjustify, XtJustifyLeft); j++;