Enlarge background of startup message
authorH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 5 Apr 2016 19:05:11 +0000 (21:05 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 17 Apr 2016 08:24:58 +0000 (10:24 +0200)
Because of rounding of the character size the message width exceeded
the background for some square sizes.

board.c

diff --git a/board.c b/board.c
index f691696..a0ce36e 100644 (file)
--- a/board.c
+++ b/board.c
@@ -1059,7 +1059,7 @@ DrawPosition (int repaint, Board board)
                q = strchr(p, '\n');
                if(q) *q = NULLCHAR;
                if(!strstr(appData.suppress, p)) {
-                   if(i == 0) DrawSeekBackground(2*squareSize, 3*squareSize, 6*squareSize, 5*squareSize);
+                   if(i == 0) DrawSeekBackground(2*squareSize, 3*squareSize, 6.5*squareSize, 5*squareSize);
                    DrawText(p, 2*squareSize + 5, (int) ((3 + 0.3*i++)*squareSize) + 5, 2);
                }
                if(q) *q++ = '\n'; else q = "";