projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
407cd11
)
Print sensible window title during tourneys
author
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 8 Jun 2011 14:49:18 +0000 (16:49 +0200)
committer
H.G. Muller
<h.g.muller@hccnet.nl>
Wed, 8 Jun 2011 16:09:21 +0000 (18:09 +0200)
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).
backend.c
patch
|
blob
|
history
diff --git
a/backend.c
b/backend.c
index
c73d6e7
..
93f79d3
100644
(file)
--- 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,