X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxboard.c;h=a557b417c6212c6d00ba898579d3fdc012a27f55;hb=734ccf35681fc778bd4cee4cd94df4e909b5a497;hp=86d42836d7b200751f622366edc3e5e11ca72d0b;hpb=85164e1c15746506744f2ff807d7f39228a8b2f4;p=xboard.git diff --git a/xaw/xboard.c b/xaw/xboard.c index 86d4283..a557b41 100644 --- a/xaw/xboard.c +++ b/xaw/xboard.c @@ -536,7 +536,7 @@ CreateFonts () void ParseColor (int n, char *name) { // in XBoard, just copy the color-name string - if(colorVariable[n]) *(char**)colorVariable[n] = strdup(name); + if(colorVariable[n] && *name == '#') *(char**)colorVariable[n] = strdup(name); } char * @@ -1288,7 +1288,7 @@ main (int argc, char **argv) CatchDeleteWindow(shellWidget, "QuitProc"); - CreateAnyPieces(); + CreateAnyPieces(1); CreateGrid(); if(appData.logoSize)