X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=d0c372a9c49a5253f77e48a320c9e974175787d7;hb=94a0acbcf696ce1aee4fb48537819c6c24d16c88;hp=9b4870423bd6e816db4495eb8b7eecdf32dc4d8a;hpb=ff21bd1b1c3a47cc0cf17d4c11125d18b53f30d8;p=xboard.git diff --git a/dialogs.c b/dialogs.c index 9b48704..d0c372a 100644 --- a/dialogs.c +++ b/dialogs.c @@ -64,6 +64,7 @@ extern char *getenv(); #endif +int initialSquareSize; int values[MAX_OPTIONS]; ChessProgramState *currentCps; char manDir[MSG_SIZ] = MANDIR; @@ -866,7 +867,9 @@ static void Test (int n) { GenericReadout(soundOptions, 1); + mute <<= 1; // temporarily enable if(soundFiles[values[2]]) PlaySoundFile(soundFiles[values[2]]); + mute >>= 1; } void @@ -3393,3 +3396,11 @@ ActivateTheme (int col) DrawPosition(True, NULL); } +char * +Shorten (char *s) +{ + static char buf[MSG_SIZ]; + if(strstr(s, dataDir) != s) return s; + snprintf(buf, MSG_SIZ, "~~%s", s + strlen(dataDir)); + return buf; +}