Refactor clock display code
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 6 Apr 2020 21:02:37 +0000 (23:02 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 6 Apr 2020 21:10:37 +0000 (23:10 +0200)
commit82a3ed0cb9295f8b69bc1f84d572135d7882657a
tree2336b9d9a2df90ce90372f6c2609d8c0d03a5117
parent02c43a4eca5f3d9289b117f73548e2c1fdac277a
Refactor clock display code

The functions DisplayTimerLabel() in XBoard and DisplayAClock() in
WinBoard now first create the text to display in a buffer, with the
possible line break in logo mode indicated as underscore. This
underscore is then later replaced by linefeed or space, depending
on whether we want a one-line or two-line clock. This as preparation
for also printing other texts.
gtk/xboard.c
winboard/winboard.c
xaw/xboard.c