X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxboard.c;h=bed61e54295c109a6138853abefc3dc827564851;hb=b52aafe5fc484a170251d4bb5bad039ffbbda4df;hp=86d42836d7b200751f622366edc3e5e11ca72d0b;hpb=85164e1c15746506744f2ff807d7f39228a8b2f4;p=xboard.git diff --git a/xaw/xboard.c b/xaw/xboard.c index 86d4283..bed61e5 100644 --- a/xaw/xboard.c +++ b/xaw/xboard.c @@ -204,7 +204,6 @@ extern char *getenv(); #include "draw.h" #define SLASH '/' -#define DATADIR "~~" #ifdef __EMX__ #ifndef HAVE_USLEEP @@ -536,7 +535,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 +1287,7 @@ main (int argc, char **argv) CatchDeleteWindow(shellWidget, "QuitProc"); - CreateAnyPieces(); + CreateAnyPieces(1); CreateGrid(); if(appData.logoSize)