X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=dialogs.c;h=9bab615d9fbc984c0d4a456e7f9d6c4ebeb13631;hb=76e5723516d8510005ef608575a6ee6b5848e2c2;hp=9b4870423bd6e816db4495eb8b7eecdf32dc4d8a;hpb=ff21bd1b1c3a47cc0cf17d4c11125d18b53f30d8;p=xboard.git diff --git a/dialogs.c b/dialogs.c index 9b48704..9bab615 100644 --- a/dialogs.c +++ b/dialogs.c @@ -866,7 +866,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 +3395,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; +}