X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xaw%2Fxboard.c;h=a557b417c6212c6d00ba898579d3fdc012a27f55;hb=734ccf35681fc778bd4cee4cd94df4e909b5a497;hp=c0239a4336a942b9c158ef63b5b5965a6ca71b27;hpb=ca218df6e665995a11015980f86003d915de9812;p=xboard.git diff --git a/xaw/xboard.c b/xaw/xboard.c index c0239a4..a557b41 100644 --- a/xaw/xboard.c +++ b/xaw/xboard.c @@ -204,6 +204,7 @@ extern char *getenv(); #include "draw.h" #define SLASH '/' +#define DATADIR "~~" #ifdef __EMX__ #ifndef HAVE_USLEEP @@ -535,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 * @@ -1287,7 +1288,7 @@ main (int argc, char **argv) CatchDeleteWindow(shellWidget, "QuitProc"); - CreateAnyPieces(); + CreateAnyPieces(1); CreateGrid(); if(appData.logoSize) @@ -2501,7 +2502,7 @@ LoadLogo (ChessProgramState *cps, int n, Boolean ics) } else if(appData.autoLogo) { if(ics) { // [HGM] logo: in ICS mode second can be used for ICS sprintf(buf, "%s/%s.png", appData.logoDir, appData.icsHost); - } else if(appData.directory[n] && appData.directory[n][0]) { + } else if(appData.logoDir && appData.logoDir[0]) { sprintf(buf, "%s/%s.png", appData.logoDir, cps->tidy); } }