From: H.G. Muller Date: Sat, 13 Oct 2012 07:33:39 +0000 (+0200) Subject: Fix non-NLS compile error for XFontStruct X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=96ff56c42122f376e9e6a1324c168dc949c3dc33;p=xboard.git Fix non-NLS compile error for XFontStruct --- diff --git a/xboard.c b/xboard.c index c97ca69..1062885 100644 --- a/xboard.c +++ b/xboard.c @@ -1454,7 +1454,7 @@ XBoard square size (hint): %d\n\ #if ENABLE_NLS &clockFontSet); #else - &clockFonStruct); + clockFontStruct); #endif boardWidget = optList[W_BOARD].handle; menuBarWidget = optList[W_MENU].handle; diff --git a/xoptions.c b/xoptions.c index b95cb22..08e18a0 100644 --- a/xoptions.c +++ b/xoptions.c @@ -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++;