small cleanup
authorArun Persaud <arun@nubati.net>
Sat, 27 Jun 2009 23:54:04 +0000 (16:54 -0700)
committerArun Persaud <arun@nubati.net>
Sat, 27 Jun 2009 23:54:04 +0000 (16:54 -0700)
common.h
xboard.c

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
-
+    Boolean lowTimeWarning; /* [HGM] low time */
     char *lowTimeWarningColor;
-    Boolean lowTimeWarning;
+
     char *serverMovesName;
     Boolean suppressLoadMoves;
     int serverPause;
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];
 
+    /* check for low time warning */
     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) {