From be3cba192bb5e739b0f1783d2d7a5ef647ba2625 Mon Sep 17 00:00:00 2001 From: H.G. Muller Date: Sat, 18 Jun 2011 12:51:10 +0200 Subject: [PATCH] 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. . --- backend.c | 2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) 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"; -- 1.7.0.4