Fix popdown seekgraph on forward-event XB
authorH.G. Muller <h.g.muller@hccnet.nl>
Sat, 11 Feb 2012 13:10:21 +0000 (14:10 +0100)
committerH.G. Muller <h.g.muller@hccnet.nl>
Sat, 11 Feb 2012 13:10:21 +0000 (14:10 +0100)
Only the grid was drawn when the > or >> button were operated, because
a full redraw was not forced by ForwardInner. The recent patch to take
the seek graph down on such events did not account for that. (BackwardInner
always seems to do full redraw, however?)

backend.c

index 2b879fe..c8e3da7 100644 (file)
--- a/backend.c
+++ b/backend.c
@@ -14204,7 +14204,7 @@ StopExaminingEvent ()
 void
 ForwardInner (int target)
 {
-    int limit;
+    int limit; int oldSeekGraphUp = seekGraphUp;
 
     if (appData.debugMode)
        fprintf(debugFP, "ForwardInner(%d), current %d, forward %d\n",
@@ -14261,7 +14261,7 @@ ForwardInner (int target)
     }
     DisplayBothClocks();
     DisplayMove(currentMove - 1);
-    DrawPosition(FALSE, boards[currentMove]);
+    DrawPosition(oldSeekGraphUp, boards[currentMove]);
     HistorySet(parseList,backwardMostMove,forwardMostMove,currentMove-1);
     if ( !matchMode && gameMode != Training) { // [HGM] PV info: routine tests if empty
        DisplayComment(currentMove - 1, commentList[currentMove]);