*
* Copyright 2005 Alessandro Scotti
*
+ * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
+ *
* ------------------------------------------------------------------------
*
* GNU XBoard is free software: you can redistribute it and/or modify
* 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. */
/* Note: in the following code a "Memo" is a Rich Edit control (it's Delphi lingo) */
// back-end after replacing Windows data-types by equivalents
-static Boolean OnlyCurrentPositionChanged()
+static Boolean
+OnlyCurrentPositionChanged ()
{
Boolean result = FALSE;
if( lastFirst >= 0 &&
lastLast >= lastFirst &&
- lastCurrent >= lastFirst &&
+ lastCurrent >= lastFirst &&
currFirst == lastFirst &&
currLast == lastLast &&
currCurrent >= 0 &&
}
// back-end, after replacing Windows data types
-static Boolean OneMoveAppended()
+static Boolean
+OneMoveAppended ()
{
Boolean result = FALSE;
}
// back-end, now that color and font-style are passed as numbers
-static void AppendMoveToMemo( int index )
+static void
+AppendMoveToMemo (int index)
{
char buf[64];
/* 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 );
}
// back-end
-void RefreshMemoContent()
+void
+RefreshMemoContent ()
{
int i;
}
// back-end part taken out of HighlightMove to determine character positions
-static void DoHighlight(int index, int onoff)
+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 );
}
}
// back-end, now that a wrapper is provided for the front-end code to do the actual scrolling
-void MemoContentUpdated()
+void
+MemoContentUpdated ()
{
int caretPos;
}
// back-end. Must be called as double-click call-back on move-history text edit
-void FindMoveByCharIndex( int char_index )
+void
+FindMoveByCharIndex (int char_index)
{
int index;
}
// back-end. In WinBoard called by call-back, but could be called directly by SetIfExists?
-void UpdateMoveHistory()
+void
+UpdateMoveHistory ()
{
/* Update the GUI */
if( OnlyCurrentPositionChanged() ) {
}
// back-end
-void MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo )
+void
+MoveHistorySet (char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo)
{
/* [AS] Danger! For now we rely on the movelist parameter being a static variable! */
if(MoveHistoryDialogExists())
UpdateMoveHistory(); // [HGM] call this directly, in stead of through call-back
}
-