X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwengineo.c;h=4876a708112b13bb3158f9f6b16ff6eb6164e51d;hb=d5c36d4669c2f625af7c280c5a4ebdc4ba284e95;hp=1c3238f5d3ed61d0007c2bad715e3e089fd74092;hpb=11bdae9e46aaeb00dd46db45908919e1e22e5590;p=xboard.git diff --git a/winboard/wengineo.c b/winboard/wengineo.c index 1c3238f..4876a70 100644 --- a/winboard/wengineo.c +++ b/winboard/wengineo.c @@ -34,9 +34,9 @@ #include #include "common.h" -#include "winboard.h" #include "frontend.h" #include "backend.h" +#include "winboard.h" #include "wsnap.h" @@ -61,27 +61,8 @@ HICON icons[8]; // [HGM] this front-end array translates back-end icon indicator HWND outputField[2][7]; // [HGM] front-end array to translate output field to window handle -void EngineOutputPopUp(); -void EngineOutputPopDown(); -int EngineOutputIsUp(); - #define SHOW_PONDERING -/* Imports from backend.c */ -char * SavePart(char *str); -extern int opponentKibitzes; - -/* Imports from winboard.c */ -extern HWND engineOutputDialog; -extern int engineOutputDialogUp; - -extern HINSTANCE hInst; -extern HWND hwndMain; - -extern WindowPlacement wpEngineOutput; - -extern BoardSize boardSize; - /* Module variables */ #define H_MARGIN 2 #define V_MARGIN 2 @@ -97,12 +78,11 @@ extern BoardSize boardSize; #define STATE_ANALYZING 3 static int windowMode = 1; - static int needInit = TRUE; - static int lastDepth[2] = { -1, -1 }; static int lastForwardMostMove[2] = { -1, -1 }; static int engineState[2] = { -1, -1 }; +static BOOLEAN engineOutputDialogUp = FALSE; typedef struct { // HWND hColorIcon; // [HGM] the output-control handles are no loger passed,