X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwevalgraph.c;h=21fd1e4c988b7b6a1ddef3959c15e71933cb87cc;hb=d5c36d4669c2f625af7c280c5a4ebdc4ba284e95;hp=be5199103ff083aaccfc69785f67ab2e7cf3eac2;hpb=11bdae9e46aaeb00dd46db45908919e1e22e5590;p=xboard.git diff --git a/winboard/wevalgraph.c b/winboard/wevalgraph.c index be51991..21fd1e4 100644 --- a/winboard/wevalgraph.c +++ b/winboard/wevalgraph.c @@ -37,9 +37,6 @@ #include "frontend.h" #include "backend.h" -/* Imports from winboard.c */ -extern BOOLEAN evalGraphDialogUp; // should be back-end variable, and defined here - /* Module globals */ // used to communicate between back-end and front-end part static ChessProgramStats_Move * currPvInfo; static int currFirst = 0; @@ -347,11 +344,6 @@ void PaintEvalGraph( void ) DrawHistograms(); } -Boolean EvalGraphIsUp() -{ - return evalGraphDialogUp; -} - // ------------------------------------------ front-end starts here ---------------------------------------------- #include @@ -362,18 +354,12 @@ Boolean EvalGraphIsUp() #define WM_REFRESH_GRAPH (WM_USER + 1) -void EvalGraphSet( int first, int last, int current, ChessProgramStats_Move * pvInfo ); -void EvalGraphPopUp(); -void EvalGraphPopDown(); -Boolean EvalGraphIsUp(); - // calls of front-end part into back-end part extern int GetMoveIndexFromPoint( int x, int y ); extern void PaintEvalGraph( void ); /* Imports from winboard.c */ -extern HWND evalGraphDialog; -extern BOOLEAN evalGraphDialogUp; // should be back-end, really +static BOOLEAN evalGraphDialogUp; // should be back-end, really extern HINSTANCE hInst; extern HWND hwndMain; @@ -388,6 +374,11 @@ static HBITMAP hbmPB = NULL; static HPEN pens[6]; // [HGM] put all pens in one array static HBRUSH hbrHist[3] = { NULL, NULL, NULL }; +Boolean EvalGraphIsUp() +{ + return evalGraphDialogUp; +} + // [HGM] front-end, added as wrapper to avoid use of LineTo and MoveToEx in other routines (so they can be back-end) static void DrawSegment( int x, int y, int *lastX, int *lastY, int penType ) {