From: H.G. Muller Date: Wed, 28 Sep 2011 18:42:00 +0000 (+0200) Subject: Make book-window update part of HistorySet X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=648757f53b010106ec394fb068109a5d3a8c8a26;p=xboard.git Make book-window update part of HistorySet --- diff --git a/backend.c b/backend.c index eeea66e..3a77cf4 100644 --- a/backend.c +++ b/backend.c @@ -1665,6 +1665,8 @@ InitBackEnd3 P((void)) void HistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current ) { + DisplayBook(current+1); + MoveHistorySet( movelist, first, last, current, pvInfoList ); EvalGraphSet( first, last, current, pvInfoList ); @@ -9488,7 +9490,6 @@ ShowMove(fromX, fromY, toX, toY) DrawPosition(FALSE, boards[currentMove]); DisplayBothClocks(); HistorySet(parseList,backwardMostMove,forwardMostMove,currentMove-1); - DisplayBook(currentMove); } void SendEgtPath(ChessProgramState *cps) @@ -14056,7 +14057,6 @@ ForwardInner(target) if ( !matchMode && gameMode != Training) { // [HGM] PV info: routine tests if empty DisplayComment(currentMove - 1, commentList[currentMove]); } - DisplayBook(currentMove); } @@ -14169,7 +14169,6 @@ BackwardInner(target) HistorySet(parseList,backwardMostMove,forwardMostMove,currentMove-1); // [HGM] PV info: routine tests if comment empty DisplayComment(currentMove - 1, commentList[currentMove]); - DisplayBook(currentMove); } void