From: H.G. Muller Date: Sat, 18 Jun 2011 10:51:10 +0000 (+0200) Subject: Update window itle after last game of match X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=be3cba192bb5e739b0f1783d2d7a5ef647ba2625;p=xboard.git Update window itle after last game of match The result printed behind player names during a match would still be the one without the game, differing from what the popup would show, which looked sloppy enough for people to complain about it. . --- diff --git a/backend.c b/backend.c index 6764bea..7308920 100644 --- a/backend.c +++ b/backend.c @@ -234,6 +234,7 @@ void NextMatchGame P((void)); int NextTourneyGame P((int nr, int *swap)); int Pairing P((int nr, int nPlayers, int *w, int *b, int *sync)); FILE *WriteTourneyFile P((char *results)); +void DisplayTwoMachinesTitle P(()); #ifdef WIN32 extern void ConsoleCreate(); @@ -10255,6 +10256,7 @@ GameEnds(result, resultDetails, whosays) first.tidy, second.tidy, first.matchWins, second.matchWins, appData.matchGames - (first.matchWins + second.matchWins)); + if(!appData.tourneyFile[0]) matchGame++, DisplayTwoMachinesTitle(); // [HGM] update result in window title popupRequested++; // [HGM] crash: postpone to after resetting endingGame if (appData.firstPlaysBlack) { // [HGM] match: back to original for next match first.twoMachinesColor = "black\n";