X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=board.c;h=a0ce36e003b70adabd801e25da9e1e1147f83fab;hp=7b3535a66abf347f6bd26d05afef05bbf6d8bb84;hb=439b2edcbe1c2108c6d4c4ec3db5be04dbf92a0a;hpb=894916fe72347000731f92313b9c2230fd837247 diff --git a/board.c b/board.c index 7b3535a..a0ce36e 100644 --- a/board.c +++ b/board.c @@ -194,7 +194,7 @@ SetPremoveHighlights (int fromX, int fromY, int toX, int toY) } if (pm2X != toX || pm2Y != toY) { if (pm2X >= 0 && pm2Y >= 0) { - damage[0][pm1Y][pm1X] |= 2; + damage[0][pm2Y][pm2X] |= 2; } } pm1X = fromX; @@ -1043,7 +1043,7 @@ DrawPosition (int repaint, Board board) SquareExpose(i, j, lineGap); else SquareExpose(i, j, 0); - damage[nr][i][j] = 0; + if(nr == 0) damage[nr][i][j] = 0; // on auxiliary board we retain arrow damage } } @@ -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 = "";