From: Arun Persaud Copyright 1991 by Digital Equipment Corporation, Maynard, Massachusetts.
See the NEWS file in the distribution or git for more details.
diff --git a/draw.c b/draw.c
index 783f240..f89468d 100644
--- a/draw.c
+++ b/draw.c
@@ -5,7 +5,7 @@
* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* The following terms apply to Digital Equipment Corporation's copyright
* interest in XBoard:
diff --git a/draw.h b/draw.h
index b666150..cf6ceab 100644
--- a/draw.h
+++ b/draw.h
@@ -5,7 +5,7 @@
* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* The following terms apply to Digital Equipment Corporation's copyright
* interest in XBoard:
diff --git a/engineoutput.c b/engineoutput.c
index 42eccc0..e22df5e 100644
--- a/engineoutput.c
+++ b/engineoutput.c
@@ -5,7 +5,7 @@
*
* Copyright 2005 Alessandro Scotti
*
- * Enhancements Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * Enhancements Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* ------------------------------------------------------------------------
*
@@ -413,7 +413,7 @@ InsertionPoint (int len, EngineOutputData *ed)
if(ed->moveKey != keys[i+n] && // same move always tops previous one (as a higher score must be a fail low)
newScore < scores[i+n]) break;
// if it had higher score as previous, move previous in stead
- scores[i+n+2] = scores[i+n];
+ scores[i+n+2] = ed->moveKey == keys[i+n] ? newScore : scores[i+n]; // correct scores of fail-low/high searches
textEnd[i+n+2] = textEnd[i+n] + len;
keys[i+n+2] = keys[i+n];
}
diff --git a/engineoutput.h b/engineoutput.h
index 098f6a8..23127aa 100644
--- a/engineoutput.h
+++ b/engineoutput.h
@@ -1,7 +1,7 @@
/*
* wengineo.h -- Clipboard routines for WinBoard
*
- * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* Enhancements Copyright 2005 Alessandro Scotti
*
diff --git a/evalgraph.c b/evalgraph.c
index 2da07fd..2767560 100644
--- a/evalgraph.c
+++ b/evalgraph.c
@@ -5,7 +5,7 @@
*
* Copyright 2005 Alessandro Scotti
*
- * Enhancments Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * Enhancments Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* ------------------------------------------------------------------------
*
diff --git a/evalgraph.h b/evalgraph.h
index 2e05db6..9d3ae7d 100644
--- a/evalgraph.h
+++ b/evalgraph.h
@@ -1,7 +1,7 @@
/*
* evalgraph.h -- Evaluation Graph window
*
- * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* Enhancements Copyright 2005 Alessandro Scotti
*
diff --git a/frontend.h b/frontend.h
index d16fde6..6dcc1f7 100644
--- a/frontend.h
+++ b/frontend.h
@@ -5,7 +5,7 @@
* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* Enhancements Copyright 2005 Alessandro Scotti
*
@@ -216,7 +216,7 @@ void EnableNamedMenuItem P((char *menuRef, int state));
typedef struct FrontEndProgramStats_TAG {
int which;
int depth;
- unsigned long nodes;
+ u64 nodes;
int score;
int time;
char * pv;
diff --git a/gamelist.c b/gamelist.c
index a96aeca..62b4e83 100644
--- a/gamelist.c
+++ b/gamelist.c
@@ -1,7 +1,7 @@
/*
* gamelist.c -- Functions to manage a gamelist
*
- * Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* Enhancements Copyright 2005 Alessandro Scotti
*
diff --git a/gtk/xboard.c b/gtk/xboard.c
index 0546a3a..750e64f 100644
--- a/gtk/xboard.c
+++ b/gtk/xboard.c
@@ -5,7 +5,7 @@
* Massachusetts.
*
* Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006,
- * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc.
+ * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc.
*
* The following terms apply to Digital Equipment Corporation's copyright
* interest in XBoard:
@@ -167,8 +167,8 @@ extern char *getenv();
#include "gettext.h"
#include "draw.h"
-#ifdef OSX
-# include "gtkmacintegration/gtkosxapplication.h"
+#ifdef __APPLE__
+# include
-Enhancements Copyright 1992-2013 Free Software Foundation, Inc.
The following terms apply to Digital Equipment Corporation's copyright interest in WinBoard:
diff --git a/winboard/jaws.c b/winboard/jaws.c index f488039..b5961cb 100644 --- a/winboard/jaws.c +++ b/winboard/jaws.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * XBoard borrows its colors and the bitmaps.xchess bitmap set from XChess, * which was written and is copyrighted by Wayne Christopher. diff --git a/winboard/language.txt b/winboard/language.txt index 216dcaf..4c8d940 100644 --- a/winboard/language.txt +++ b/winboard/language.txt @@ -196,7 +196,7 @@ ABOUTBOX "OK" === "" "Chessboard for Windows" === "" "Copyright 1991 Digital Equipment Corporation" === "" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "" ## What happened with H.G.Muller? [He sold his copyrights to FSF for $1] ## The following string of 6 spaces can be translated to an acknowledgement of the translator, diff --git a/winboard/language/deutsch.lng b/winboard/language/deutsch.lng index e4ee588..808482e 100644 --- a/winboard/language/deutsch.lng +++ b/winboard/language/deutsch.lng @@ -164,7 +164,7 @@ ABOUTBOX "OK" === "OK" "Chessboard for Windows" === "Schachbrett für Windows" "Copyright 1991 Digital Equipment Corporation" === "Copyright (c) Digital Equipment Corporation 1991" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "Weiter Copyright (c) Free Software Fundation 1992-2010" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "Weiter Copyright (c) Free Software Fundation 1992-2014" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "Weiter Copyright (c) \r\nAlessandro Scotti 2005" "WinBoard 0.0.0" === "WinBoard 0.0.0" diff --git a/winboard/language/italiano.lng b/winboard/language/italiano.lng index 2e43e76..f1f3925 100644 --- a/winboard/language/italiano.lng +++ b/winboard/language/italiano.lng @@ -198,7 +198,7 @@ ABOUTBOX "OK" === "OK" "Chessboard for Windows" === "Interfaccia per gli Scacchi e varianti per Windows" "Copyright 1991 Digital Equipment Corporation" === "Copyright (C) 1991 Digital Equipment Corporation" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "Modifiche Copyright (C) 1992-2013 Free Software Foundation" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "Modifiche Copyright (C) 1992-2014 Free Software Foundation" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "Modifiche Copyright (C) 2005\r\nAlessandro Scotti" ## What happened with H.G.Muller? [He sold his copyrights to FSF for $1] ## The following string of 6 spaces can be translated to an acknowledgement of the translator, diff --git a/winboard/language/nederlands.lng b/winboard/language/nederlands.lng index 2947206..3ac85fc 100644 --- a/winboard/language/nederlands.lng +++ b/winboard/language/nederlands.lng @@ -172,7 +172,7 @@ ABOUTBOX "OK" === "OK" "Chessboard for Windows" === "Schaakbord voor Windows" "Copyright 1991 Digital Equipment Corporation" === "" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "" ## What happened with H.G.Muller? [He sold his copyrights to FSF for $1] ## The following string of 6 spaces can be translated to an acknowledgement of the translator, diff --git a/winboard/language/romanian.lng b/winboard/language/romanian.lng index 01164d8..8559006 100644 --- a/winboard/language/romanian.lng +++ b/winboard/language/romanian.lng @@ -184,7 +184,7 @@ ABOUTBOX "OK" === "OK" "Chessboard for Windows" === "WinBoard GUI pentru Windows" "Copyright 1991 Digital Equipment Corporation" === "" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "" ## What happened with H.G.Muller? [He sold his copyrights to FSF for $1] ## The following string of 6 spaces can be translated to an acknowledgement of the translator, diff --git a/winboard/language/russian.lng b/winboard/language/russian.lng index e8b95eb..ae11cf4 100644 --- a/winboard/language/russian.lng +++ b/winboard/language/russian.lng @@ -197,7 +197,7 @@ ABOUTBOX "OK" === "OK" "Chessboard for Windows" === "Øàõìàòíàÿ äîñêà äëÿ Windows" "Copyright 1991 Digital Equipment Corporation" === "" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "" ## What happened with H.G.Muller? [He sold his copyrights to FSF for $1] ## The following string of 6 spaces can be translated to an acknowledgement of the translator, diff --git a/winboard/language/spanish.lng b/winboard/language/spanish.lng index fa7f79b..a1ada60 100644 --- a/winboard/language/spanish.lng +++ b/winboard/language/spanish.lng @@ -172,7 +172,7 @@ ABOUTBOX "Chessboard for Windows" === "Tablero de ajedrez para Windows" ## Following 3 strings doesn't get translated :( "Copyright 1991 Digital Equipment Corporation" === "(c) Copyright Digital Equipment Corporation 1991" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "Mejoras (c) Copyright Free Software Fundation 1992-2010" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "Mejoras (c) Copyright Free Software Fundation 1992-2010" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "Mejoras (c) Copyright\r\nAlessandro Scotti 2005" ## What happened with H.G.Muller? ## Absolutely needed a link to download the most recent version diff --git a/winboard/language/vietnamese.lng b/winboard/language/vietnamese.lng index bb7c602..ca4e312 100644 --- a/winboard/language/vietnamese.lng +++ b/winboard/language/vietnamese.lng @@ -196,7 +196,7 @@ ABOUTBOX "OK" === "Ðýõòc" "Chessboard for Windows" === "Bàn CõÌ Cho Windows" "Copyright 1991 Digital Equipment Corporation" === "BaÒn QuyêÌn 1991 Digital Equipment Corporation" -"Enhancements Copyright 1992-2013 Free Software Foundation" === "" +"Enhancements Copyright 1992-2014 Free Software Foundation" === "" "Enhancements Copyright 2005\r\nAlessandro Scotti" === "" ## What happened with H.G.Muller? [He sold his copyrights to FSF for $1] ## The following string of 6 spaces can be translated to an acknowledgement of the translator, diff --git a/winboard/wchat.c b/winboard/wchat.c index e06d996..6346c7d 100644 --- a/winboard/wchat.c +++ b/winboard/wchat.c @@ -3,7 +3,7 @@ * * Author: H.G.Muller (August 2009) * - * Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ * diff --git a/winboard/wclipbrd.c b/winboard/wclipbrd.c index 08a97bf..e46647d 100644 --- a/winboard/wclipbrd.c +++ b/winboard/wclipbrd.c @@ -1,7 +1,7 @@ /* * wclipbrd.c -- Clipboard routines for WinBoard * - * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/winboard/wclipbrd.h b/winboard/wclipbrd.h index 16992f0..53149ed 100644 --- a/winboard/wclipbrd.h +++ b/winboard/wclipbrd.h @@ -1,7 +1,7 @@ /* * wclipbrd.c -- Clipboard routines for WinBoard * - * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/winboard/wedittags.c b/winboard/wedittags.c index bd34038..b3cf334 100644 --- a/winboard/wedittags.c +++ b/winboard/wedittags.c @@ -1,7 +1,7 @@ /* * wedittags.c -- EditTags window for WinBoard * - * Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/winboard/wengineoutput.c b/winboard/wengineoutput.c index 47bca87..d3a673f 100644 --- a/winboard/wengineoutput.c +++ b/winboard/wengineoutput.c @@ -5,7 +5,7 @@ * * Copyright 2005 Alessandro Scotti * - * Enhancements Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ * diff --git a/winboard/wevalgraph.c b/winboard/wevalgraph.c index 5a6ca62..ee71b60 100644 --- a/winboard/wevalgraph.c +++ b/winboard/wevalgraph.c @@ -5,6 +5,8 @@ * * 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 diff --git a/winboard/wgamelist.c b/winboard/wgamelist.c index 2512bc8..4fa6025 100644 --- a/winboard/wgamelist.c +++ b/winboard/wgamelist.c @@ -1,7 +1,7 @@ /* * wgamelist.c -- Game list window for WinBoard * - * Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/winboard/whistory.c b/winboard/whistory.c index 96a08e2..d0d897a 100644 --- a/winboard/whistory.c +++ b/winboard/whistory.c @@ -6,6 +6,8 @@ * * Copyright 2005 Alessandro Scotti * + * Enhancements Copyright 2009, 2010, 2014 Free Software Foundation, Inc. + * * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -19,7 +21,7 @@ * 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. */ diff --git a/winboard/winboard.c b/winboard/winboard.c index 917a532..1b8460b 100644 --- a/winboard/winboard.c +++ b/winboard/winboard.c @@ -2,10 +2,10 @@ * WinBoard.c -- Windows NT front end to XBoard * * Copyright 1991 by Digital Equipment Corporation, Maynard, - * Massachusetts. + * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -984,16 +984,17 @@ InitApplication(HINSTANCE hInstance) /* Set by InitInstance, used by EnsureOnScreen */ int screenHeight, screenWidth; +RECT screenGeometry; void EnsureOnScreen(int *x, int *y, int minX, int minY) { // int gap = GetSystemMetrics(SM_CYFRAME) + GetSystemMetrics(SM_CYCAPTION); /* Be sure window at (x,y) is not off screen (or even mostly off screen) */ - if (*x > screenWidth - 32) *x = 0; - if (*y > screenHeight - 32) *y = 0; - if (*x < minX) *x = minX; - if (*y < minY) *y = minY; + if (*x > screenGeometry.right - 32) *x = screenGeometry.left; + if (*y > screenGeometry.bottom - 32) *y = screenGeometry.top; + if (*x < screenGeometry.left + minX) *x = screenGeometry.left + minX; + if (*y < screenGeometry.top + minY) *y = screenGeometry.top + minY; } VOID @@ -1054,6 +1055,32 @@ InitTextures() } } +#ifndef SM_CXVIRTUALSCREEN +#define SM_CXVIRTUALSCREEN 78 +#endif +#ifndef SM_CYVIRTUALSCREEN +#define SM_CYVIRTUALSCREEN 79 +#endif +#ifndef SM_XVIRTUALSCREEN +#define SM_XVIRTUALSCREEN 76 +#endif +#ifndef SM_YVIRTUALSCREEN +#define SM_YVIRTUALSCREEN 77 +#endif + +VOID +InitGeometry() +{ + screenHeight = GetSystemMetrics(SM_CYVIRTUALSCREEN); + if( !screenHeight ) screenHeight = GetSystemMetrics(SM_CYSCREEN); + screenWidth = GetSystemMetrics(SM_CXVIRTUALSCREEN); + if( !screenWidth ) screenWidth = GetSystemMetrics(SM_CXSCREEN); + screenGeometry.left = GetSystemMetrics(SM_XVIRTUALSCREEN); + screenGeometry.top = GetSystemMetrics(SM_YVIRTUALSCREEN); + screenGeometry.right = screenGeometry.left + screenWidth; + screenGeometry.bottom = screenGeometry.top + screenHeight; +} + BOOL InitInstance(HINSTANCE hInstance, int nCmdShow, LPSTR lpCmdLine) { @@ -1072,7 +1099,7 @@ InitInstance(HINSTANCE hInstance, int nCmdShow, LPSTR lpCmdLine) GetCurrentDirectory(MSG_SIZ, installDir); } gameInfo.boardWidth = gameInfo.boardHeight = 8; // [HGM] won't have open window otherwise - screenWidth = screenHeight = 1000; // [HGM] placement: kludge to allow calling EnsureOnScreen from InitAppData + InitGeometry(); InitAppData(lpCmdLine); /* Get run-time parameters */ /* xboard, and older WinBoards, controlled the move sound with the appData.ringBellAfterMoves option. In the current WinBoard, we @@ -1119,8 +1146,7 @@ InitInstance(HINSTANCE hInstance, int nCmdShow, LPSTR lpCmdLine) iconBlack = LoadIcon(hInstance, "icon_black"); iconCurrent = iconWhite; InitDrawingColors(); - screenHeight = GetSystemMetrics(SM_CYSCREEN); - screenWidth = GetSystemMetrics(SM_CXSCREEN); + InitPosition(0); // to set nr of ranks and files, which might be non-default through command-line args for (ibs = (int) NUM_SIZES - 1; ibs >= 0; ibs--) { /* Compute window size for each board size, and use the largest diff --git a/winboard/winboard.h b/winboard/winboard.h index b3eee24..0998c97 100644 --- a/winboard/winboard.h +++ b/winboard/winboard.h @@ -2,10 +2,10 @@ * WinBoard.h -- Definitions for Windows NT front end to XBoard * * Copyright 1991 by Digital Equipment Corporation, Maynard, - * Massachusetts. + * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * @@ -194,7 +194,7 @@ typedef enum { extern WindowPlacement placementTab[NUM_WINDOWS]; extern HWND hwndTab[NUM_WINDOWS]; // this remains pure front-end. -void Translate( HWND hDlg, int id); +void Translate( HWND hDlg, int id); VOID InitWindowPlacement( WindowPlacement * wp ); VOID RestoreWindowPlacement( HWND hWnd, WindowPlacement * wp ); VOID ReattachAfterMove( LPRECT lprcOldPos, int new_x, int new_y, HWND hWndChild, WindowPlacement * pwpChild ); @@ -216,4 +216,6 @@ extern HWND gameListDialog; VOID EditTagsProc(void); extern HWND editTagsDialog; -extern int screenWidth, screenHeight; +extern int screenWidth, screenHeight; +extern RECT screenGeometry; // Top-left coordiate of the screen can be different from (0,0) + diff --git a/winboard/winboard.rc b/winboard/winboard.rc index 69ed9da..334a624 100644 --- a/winboard/winboard.rc +++ b/winboard/winboard.rc @@ -44,7 +44,7 @@ BEGIN LTEXT "Chessboard for Windows",400,25,15,121,8 LTEXT "Copyright 1991 Digital Equipment Corporation",201,6,34, 149,8 - LTEXT "Enhancements Copyright 1992-2013 Free Software Foundation", + LTEXT "Enhancements Copyright 1992-2014 Free Software Foundation", OPT_TCtext1,6,45,121,17 CONTROL "",OPT_TCTime,"Static",SS_BLACKRECT,4,28,159,1 LTEXT "WinBoard 0.0.0",ABOUTBOX_Version,25,5,160,8 @@ -248,7 +248,7 @@ BEGIN RTEXT "Chessboard for Windows",IDC_ChessBoard,196,154,80,8 LTEXT "Copyright 1991 Digital Equipment Corporation",201,4,168, 151,8 - LTEXT "Enhancements Copyright 1992-2013 Free Software Foundation", + LTEXT "Enhancements Copyright 1992-2014 Free Software Foundation", OPT_TCtext1,4,179,126,17 CONTROL "",OPT_TCTime,"Static",SS_BLACKRECT,4,164,272,1 LTEXT "WinBoard 0.0.0",ABOUTBOX_Version,4,154,64,8 diff --git a/winboard/wlayout.c b/winboard/wlayout.c index 08f461f..bda1cfe 100644 --- a/winboard/wlayout.c +++ b/winboard/wlayout.c @@ -5,6 +5,8 @@ * * Copyright 2005 Alessandro Scotti * + * Enhancements Copyright 2009, 2012, 2013, 2014 Free Software Foundation, Inc. + * * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -173,15 +175,15 @@ VOID ReattachAfterSize( LPRECT lprcOldPos, int new_w, int new_h, HWND hWndChild, /* Adjust size & placement */ if(pwpChild->x + pwpChild->width >= lprcOldPos->right && - (pwpChild->x + pwpChild->width < screenWidth - 5 || delta_x > 0) ) // keep right edge glued to display edge if touching + (pwpChild->x + pwpChild->width < screenGeometry.right - 5 || delta_x > 0) ) // keep right edge glued to display edge if touching pwpChild->width += delta_x; - if(pwpChild->x + pwpChild->width >= screenWidth ) // don't move right edge off screen - pwpChild->width = screenWidth - pwpChild->x; + if(pwpChild->x + pwpChild->width >= screenGeometry.right ) // don't move right edge off screen + pwpChild->width = screenGeometry.right - pwpChild->x; if(pwpChild->y + pwpChild->height >= lprcOldPos->bottom && - (pwpChild->y + pwpChild->height < screenHeight - 35 || delta_y > 0) ) // keep bottom edge glued to display edge if touching + (pwpChild->y + pwpChild->height < screenGeometry.bottom - 35 || delta_y > 0) ) // keep bottom edge glued to display edge if touching pwpChild->height += delta_y; - if(pwpChild->y + pwpChild->height >= screenHeight - 30 ) // don't move bottom edge off screen - pwpChild->height = screenHeight - 30 - pwpChild->y; + if(pwpChild->y + pwpChild->height >= screenGeometry.bottom - 30 ) // don't move bottom edge off screen + pwpChild->height = screenGeometry.bottom - 30 - pwpChild->y; if(pwpChild->x >= lprcOldPos->right) pwpChild->width -= delta_x, pwpChild->x += delta_x; if(pwpChild->y >= lprcOldPos->bottom) pwpChild->height -= delta_y, pwpChild->y += delta_y; if(pwpChild->width < 30) pwpChild->width = 30; // force minimum width diff --git a/winboard/woptions.c b/winboard/woptions.c index a4d3ff2..6f2adeb 100644 --- a/winboard/woptions.c +++ b/winboard/woptions.c @@ -1,7 +1,7 @@ /* * woptions.c -- Options dialog box routines for WinBoard * - * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/winboard/woptions.h b/winboard/woptions.h index cdc1d0d..5b70c4c 100644 --- a/winboard/woptions.h +++ b/winboard/woptions.h @@ -1,7 +1,7 @@ /* * woptions.h -- Options dialog box routines for WinBoard * - * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/winboard/wsettings.c b/winboard/wsettings.c index 2cb488e..99efab5 100644 --- a/winboard/wsettings.c +++ b/winboard/wsettings.c @@ -1,4 +1,27 @@ /* + * woptions.h -- Options dialog box routines for WinBoard + * + * Copyright 2003, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. + * + * ------------------------------------------------------------------------ + * + * GNU XBoard is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * GNU XBoard is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * 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/. * + * + *------------------------------------------------------------------------ + ** See the file ChangeLog for a revision history. */ + +/* * Engine-settings dialog. The complexity come from an attempt to present the engine-defined options * in a nicey formatted layout. To this end we first run a back-end pre-formatter, which will distribute * the controls over two columns (the minimum required, as some are double width). It also takes care of diff --git a/winboard/wsockerr.c b/winboard/wsockerr.c index 24a1b4b..45775f7 100644 --- a/winboard/wsockerr.c +++ b/winboard/wsockerr.c @@ -1,7 +1,7 @@ /* * wsockerr.c * - * Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify diff --git a/winboard/wsockerr.h b/winboard/wsockerr.h index 8fb9741..3594f06 100644 --- a/winboard/wsockerr.h +++ b/winboard/wsockerr.h @@ -1,7 +1,7 @@ /* * wsockerr.h * - * Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify diff --git a/xaw/xboard.c b/xaw/xboard.c index d93743f..d3d6ba2 100644 --- a/xaw/xboard.c +++ b/xaw/xboard.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: diff --git a/xaw/xboard.h b/xaw/xboard.h index 04692b5..95fec39 100644 --- a/xaw/xboard.h +++ b/xaw/xboard.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * The following terms apply to Digital Equipment Corporation's copyright * interest in XBoard: diff --git a/xaw/xengineoutput.c b/xaw/xengineoutput.c index 66d259a..d39c604 100644 --- a/xaw/xengineoutput.c +++ b/xaw/xengineoutput.c @@ -5,7 +5,8 @@ * * Copyright 2005 Alessandro Scotti * - * Enhancements Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Enhancements Copyright 2009, 2010, 2011, 2012, 2013, + * 2014 Free Software Foundation, Inc. * * ------------------------------------------------------------------------ * diff --git a/xaw/xgamelist.c b/xaw/xgamelist.c index 910729d..9906f7f 100644 --- a/xaw/xgamelist.c +++ b/xaw/xgamelist.c @@ -1,7 +1,7 @@ /* * xgamelist.c -- Game list window, part of X front end for XBoard * - * Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify diff --git a/xaw/xgamelist.h b/xaw/xgamelist.h index 5a0a5e1..cc55793 100644 --- a/xaw/xgamelist.h +++ b/xaw/xgamelist.h @@ -1,7 +1,7 @@ /* * xgamelist.h -- Game list window, part of X front end for XBoard * - * Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify diff --git a/xaw/xhistory.c b/xaw/xhistory.c index edaf8c3..23ee4af 100644 --- a/xaw/xhistory.c +++ b/xaw/xhistory.c @@ -1,7 +1,7 @@ /* * New (WinBoard-style) Move history for XBoard * - * Copyright 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify diff --git a/xaw/xhistory.h b/xaw/xhistory.h index e2a51ad..b3832d1 100644 --- a/xaw/xhistory.h +++ b/xaw/xhistory.h @@ -1,7 +1,7 @@ /* * xhistory.h -- Eval graph window, part of X front end for XBoard * - * Copyright 1995, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 1995, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify diff --git a/xaw/xoptions.c b/xaw/xoptions.c index b8b64f6..1f406cb 100644 --- a/xaw/xoptions.c +++ b/xaw/xoptions.c @@ -1,7 +1,7 @@ /* * xoptions.c -- Move list window, part of X front end for XBoard * - * Copyright 2000, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * Copyright 2000, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * ------------------------------------------------------------------------ * * GNU XBoard is free software: you can redistribute it and/or modify @@ -988,6 +988,7 @@ GenericPopUp (Option *option, char *title, DialogClass dlgNr, DialogClass parent } else texts[h] = dialog = NULL; // kludge to position from left margin w = option[i].type == Spin || option[i].type == Fractional ? 70 : option[i].max ? option[i].max : 205; if(option[i].type == FileName || option[i].type == PathName) w -= 55; + if(squareSize > 33) w += (squareSize - 33)/2; j = SetPositionAndSize(args, dialog, last, 1 /* border */, w /* w */, option[i].type == TextBox ? option[i].value : 0 /* h */, 0x91 /* chain full width */); if(option[i].type == TextBox) { // decorations for multi-line text-edits diff --git a/xboard2.h b/xboard2.h index 825b0f2..1616749 100644 --- a/xboard2.h +++ b/xboard2.h @@ -1,3 +1,25 @@ +/* + * xboard2.h -- Move list window, part of X front end for XBoard + * + * Copyright 2012, 2013, 2014 Free Software Foundation, Inc. + * ------------------------------------------------------------------------ + * + * GNU XBoard is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or (at + * your option) any later version. + * + * GNU XBoard is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * 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/. * + * + *------------------------------------------------------------------------ + ** See the file ChangeLog for a revision history. */ + void SendToProgram P((char *message, ChessProgramState *cps)); void SendToICS P((char *buf)); void InitDrawingSizes P((int i, int j)); diff --git a/zippy.README b/zippy.README index 20836f0..065fb74 100644 --- a/zippy.README +++ b/zippy.README @@ -50,7 +50,7 @@ tends to work poorly because it is dull when shouted in isolated * * * -Unix: To build the Zippy version of xboard, on most systems just do: +Unix: To build the Zippy version of xboard, on most systems just do: configure --enable-zippy make @@ -126,12 +126,12 @@ NEW OPTIONS its sayings file. You can alias this to whatever you like. If XXX is censoring you, he is automatically removed from your notify list. - + (3) If a player XXX in your notify list logs off, xboard sends - the command "farewell XXX" to ICS. You can alias this to + the command "farewell XXX" to ICS. You can alias this to whatever you like. Note that the player is already gone, so telling him something is futile. - + If zippyTalk is on, colorization in the ICS interaction window, and the sounds corresponding to colors in that window, do not work. The reply feature captures the tells, etc., @@ -263,7 +263,7 @@ NEW OPTIONS partner tells to be relayed to the engine with the ptell command. - -zippyMaxGames int + -zippyMaxGames int -zippyReplayTimeout If zippyMaxGames > 0, Zippy will play at most the given number of consecutive games against the same opponent. Thereafter, @@ -280,8 +280,8 @@ NEW OPTIONS starts a game between Zippy and the first opponent to respond, giving Zippy no choice about whether to accept or decline. - -zippyShortGame int - If zippyShortGame > 0, Zippy will decline all challenges + -zippyShortGame int + If zippyShortGame > 0, Zippy will decline all challenges from an opponent that terminated a game before the given number of ply (with an explanatory tell) until either someone else has played or zippyReplayTimeout seconds have elapsed. Do not set diff --git a/zippy.c b/zippy.c index 09e8c7d..8796328 100644 --- a/zippy.c +++ b/zippy.c @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/zippy.h b/zippy.h index c08b7a1..59a1012 100644 --- a/zippy.h +++ b/zippy.h @@ -5,7 +5,7 @@ * Massachusetts. * * Enhancements Copyright 1992-2001, 2002, 2003, 2004, 2005, 2006, - * 2007, 2008, 2009, 2010, 2011, 2012, 2013 Free Software Foundation, Inc. + * 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014 Free Software Foundation, Inc. * * Enhancements Copyright 2005 Alessandro Scotti * diff --git a/zippy.lines b/zippy.lines index 247b127..60fc8b4 100644 --- a/zippy.lines +++ b/zippy.lines @@ -23,8 +23,8 @@ more than 250 characters long, it will never be used. This is an extra sentence to make the saying more than 250 characters long so that the previous sentence will be true. ^ -The eighth item to know is that when you are testing, you had better have -several valid sayings in your file; for various reasons, having too few +The eighth item to know is that when you are testing, you had better have +several valid sayings in your file; for various reasons, having too few sayings can cause Zippy to get into an endless loop, or to be very slow. ^ As the ninth and final saying, let me add that you need a caret