X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=history.c;h=1270ed99f83c75c5892efdc4b1a150f5368ffd1a;hp=a1f82fd947896de1bb2ceafbbb4e11ab6146b11f;hb=HEAD;hpb=4e062d14429ed3a3a251c971690bade4c8cba946 diff --git a/history.c b/history.c index a1f82fd..1270ed9 100644 --- a/history.c +++ b/history.c @@ -6,7 +6,8 @@ * * Copyright 2005 Alessandro Scotti * - * Enhancements Copyright 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, 2014, 2015, + * 2016 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ * @@ -21,7 +22,7 @@ * General Public License for more details. * * You should have received a copy of the GNU General Public License - * along with this program. If not, see http://www.gnu.org/licenses/. + * along with this program. If not, see http://www.gnu.org/licenses/. * * ------------------------------------------------------------------------ ** See the file ChangeLog for a revision history. */ @@ -79,7 +80,7 @@ OnlyCurrentPositionChanged () if( lastFirst >= 0 && lastLast >= lastFirst && - lastCurrent >= lastFirst && + lastCurrent >= lastFirst && currFirst == lastFirst && currLast == lastLast && currCurrent >= 0 && @@ -145,7 +146,7 @@ AppendMoveToMemo (int index) /* PV info (if any) */ if( appData.showEvalInMoveHistory && currPvInfo[index].depth > 0 ) { - sprintf( buf, "{%s%.2f/%d} ", + sprintf( buf, "{%s%.2f/%d} ", currPvInfo[index].score >= 0 ? "+" : "", currPvInfo[index].score / 100.0, currPvInfo[index].depth ); @@ -172,7 +173,7 @@ static void DoHighlight (int index, int onoff) { if( index >= 0 && index < MAX_MOVES ) { - HighlightMove( histMoves[index].memoOffset, + HighlightMove( histMoves[index].memoOffset, histMoves[index].memoOffset + histMoves[index].memoLength, onoff ); } } @@ -255,4 +256,3 @@ MoveHistorySet (char movelist[][2*MOVE_LEN], int first, int last, int current, C if(MoveHistoryDialogExists()) UpdateMoveHistory(); // [HGM] call this directly, in stead of through call-back } -