Fix non-NLS compile error for XFontStruct
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 13 Oct 2012 07:33:39 +0000 (09:33 +0200)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sun, 21 Oct 2012 08:53:44 +0000 (10:53 +0200)
xboard.c
xoptions.c

index c97ca69..1062885 100644 (file)
--- 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;
index b95cb22..08e18a0 100644 (file)
@@ -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++;