From: H.G. Muller Date: Wed, 8 Jun 2011 14:49:18 +0000 (+0200) Subject: Print sensible window title during tourneys X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=3845dc6e578a5e2ca1df4ed90a5db36f7529ac30;p=xboard.git Print sensible window title during tourneys Rather than the "(W-L-D)" in the title we now print game number and total games, plus indication of the tourney type (rr, gt or sw). --- diff --git a/backend.c b/backend.c index c73d6e7..93f79d3 100644 --- a/backend.c +++ b/backend.c @@ -12691,6 +12691,12 @@ DisplayTwoMachinesTitle() { char buf[MSG_SIZ]; if (appData.matchGames > 0) { + if(appData.tourneyFile[0]) { + snprintf(buf, MSG_SIZ, "%s vs. %s (%d/%d%s)", + gameInfo.white, gameInfo.black, + nextGame+1, appData.matchGames+1, + appData.tourneyType>0 ? "gt" : appData.tourneyType<0 ? "sw" : "rr"); + } else if (first.twoMachinesColor[0] == 'w') { snprintf(buf, MSG_SIZ, "%s vs. %s (%d-%d-%d)", gameInfo.white, gameInfo.black,