projects
/
xboard.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
d80f24c
)
small cleanup
author
Arun Persaud
<arun@nubati.net>
Sat, 27 Jun 2009 23:54:04 +0000
(16:54 -0700)
committer
Arun Persaud
<arun@nubati.net>
Sat, 27 Jun 2009 23:54:04 +0000
(16:54 -0700)
common.h
patch
|
blob
|
history
xboard.c
patch
|
blob
|
history
diff --git
a/common.h
b/common.h
index
ef9a480
..
ef49a03
100644
(file)
--- a/
common.h
+++ b/
common.h
@@
-569,9
+569,9
@@
typedef struct {
int zippyReplayTimeout; /*seconds*/
int zippyShortGame; /* [HGM] aborter */
#endif
int zippyReplayTimeout; /*seconds*/
int zippyShortGame; /* [HGM] aborter */
#endif
-
+ Boolean lowTimeWarning; /* [HGM] low time */
char *lowTimeWarningColor;
char *lowTimeWarningColor;
- Boolean lowTimeWarning;
+
char *serverMovesName;
Boolean suppressLoadMoves;
int serverPause;
char *serverMovesName;
Boolean suppressLoadMoves;
int serverPause;
diff --git
a/xboard.c
b/xboard.c
index
7ddd4a8
..
99541ab
100644
(file)
--- a/
xboard.c
+++ b/
xboard.c
@@
-8225,12
+8225,12
@@
DisplayTimerLabel(w, color, timer, highlight)
char buf[MSG_SIZ];
Arg args[16];
char buf[MSG_SIZ];
Arg args[16];
+ /* check for low time warning */
Pixel foregroundOrWarningColor = timerForegroundPixel;
Pixel foregroundOrWarningColor = timerForegroundPixel;
- if (timer > 0
- && appData.lowTimeWarning
- && (timer / 1000) < appData.icsAlarmTime)
-
+ if (timer > 0 &&
+ appData.lowTimeWarning &&
+ (timer / 1000) < appData.icsAlarmTime)
foregroundOrWarningColor = lowTimeWarningColor;
if (appData.clockMode) {
foregroundOrWarningColor = lowTimeWarningColor;
if (appData.clockMode) {