X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=winboard%2Fwinboard.h;h=fe035478513156de722c7792f951247b60b5b0ef;hb=f4b62dcdc66f6b278439684a79170480f0c66efe;hp=87367e44d35b37acb77b14c5b5fe2e8292c99acd;hpb=eb4c25525f55082325940435f0175de2d388f27e;p=xboard.git diff --git a/winboard/winboard.h b/winboard/winboard.h index 87367e4..fe03547 100644 --- a/winboard/winboard.h +++ b/winboard/winboard.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -85,6 +85,7 @@ typedef struct { typedef struct { char* name; void* data; + int flag; // [HGM] needed to indicate if data was malloc'ed or not } MySound; typedef struct { @@ -131,9 +132,13 @@ VOID ParseFontName(char *name, MyFontParams *mfp); void InitComboStrings(HANDLE hwndCombo, char **cd); BOOLEAN MyLoadSound(MySound *ms); BOOLEAN MyPlaySound(MySound *ms); -VOID ExitArgError(char *msg, char *badArg); +VOID ExitArgError(char *msg, char *badArg, Boolean quit); void SaveSettings(char* name); BOOL BrowseForFolder( const char * title, char * path ); +VOID TourneyPopup(); +VOID LoadEnginePopUp(); +VOID LoadOptionsPopup(HWND hDlg); +VOID InitTextures(); /* Constants */ @@ -144,7 +149,8 @@ BOOL BrowseForFolder( const char * title, char * path ); #define COMMENT_FONT 4 #define EDITTAGS_FONT 5 #define MOVEHISTORY_FONT 6 -#define NUM_FONTS 7 +#define GAMELIST_FONT 7 +#define NUM_FONTS 8 /* Positions of some menu items. Origin is zero and separator lines count. */ /* It's gross that these are needed. */ @@ -196,10 +202,8 @@ BOOL GetActualPlacement( HWND hWnd, WindowPlacement * wp ); VOID MoveHistoryPopUp(); VOID MoveHistoryPopDown(); -VOID MoveHistorySet( char movelist[][2*MOVE_LEN], int first, int last, int current, ChessProgramStats_Move * pvInfo ); extern HWND moveHistoryDialog; -VOID EvalGraphSet( int first, int last, int current, ChessProgramStats_Move * pvInfo ); VOID EvalGraphPopUp(); VOID EvalGraphPopDown(); extern HWND evalGraphDialog; @@ -211,3 +215,4 @@ extern HWND gameListDialog; VOID EditTagsProc(void); extern HWND editTagsDialog; +extern int screenWidth, screenHeight;