summaryrefslogtreecommitdiff
path: root/chess-display.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-display.el')
-rw-r--r--chess-display.el4
1 files changed, 2 insertions, 2 deletions
diff --git a/chess-display.el b/chess-display.el
index 6c1e6d1..8c0444d 100644
--- a/chess-display.el
+++ b/chess-display.el
@@ -63,8 +63,8 @@
'black-remaining)))
(if (and white black)
(format " W %02d:%02d B %02d:%02d"
- (/ (floor white) 60) (% (floor white) 60)
- (/ (floor black) 60) (% (floor black) 60))))))
+ (/ (floor white) 60) (% (abs (floor white)) 60)
+ (/ (floor black) 60) (% (abs (floor black)) 60))))))
"The format of a chess display's modeline.
See `mode-line-format' for syntax details."
:type 'sexp