X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=blobdiff_plain;f=evalgraph.h;h=f4b4f92097c9716de564533929fc1623826a2034;hp=9f51fc65e8324d9720006c7dd1622916cb1101e9;hb=HEAD;hpb=8e37ccb580c1dc9fd8ebd094c3e701d722d10327 diff --git a/evalgraph.h b/evalgraph.h index 9f51fc6..f4b4f92 100644 --- a/evalgraph.h +++ b/evalgraph.h @@ -1,7 +1,8 @@ /* * evalgraph.h -- Evaluation Graph window * - * Copyright 2000, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016 Free + * Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -27,7 +28,7 @@ #define MIN_HIST_WIDTH 4 #define MAX_HIST_WIDTH 10 -enum PEN { PEN_NONE, PEN_BLACK, PEN_DOTTED, PEN_BLUEDOTTED, PEN_BOLDWHITE, PEN_BOLDBLACK, PEN_BACKGD }; +typedef enum { PEN_NONE, PEN_BLACK, PEN_DOTTED, PEN_BLUEDOTTED, PEN_BOLDWHITE, PEN_BOLDBLACK, PEN_BACKGD, PEN_ANY } PenType; #define FILLED 1 #define OPEN 0 @@ -37,6 +38,7 @@ ChessProgramStats_Move * currPvInfo; extern int currFirst; extern int currLast; extern int currCurrent; +extern int differentialView; extern int nWidthPB; extern int nHeightPB; @@ -46,12 +48,12 @@ extern int MarginW; extern int MarginH; // calls from back-end part into front-end part -void DrawSegment( int x, int y, int *lastX, int *lastY, enum PEN ); +void DrawSegment( int x, int y, int *lastX, int *lastY, int p ); void DrawRectangle( int left, int top, int right, int bottom, int side, int style ); void DrawEvalText(char *buf, int cbBuf, int y); +void EvalGraphSet P(( int first, int last, int current, ChessProgramStats_Move * pvInfo )); // calls of front-end part into back-end part extern int GetMoveIndexFromPoint( int x, int y ); extern void PaintEvalGraph( void ); extern char *MakeEvalTitle( char *title ); -