xboard.git
14 years agonew developer release master-20100118
Arun Persaud [Mon, 18 Jan 2010 20:18:32 +0000]
new developer release

14 years agofixed Makefile.am to handle config file correctly
Arun Persaud [Mon, 18 Jan 2010 20:15:06 +0000]
fixed Makefile.am to handle config file correctly

14 years agoChange opening array -variant fairy
H.G. Muller [Fri, 15 Jan 2010 20:55:29 +0000]
Change opening array -variant fairy

We now use the position of "Chess with Different Armies", FIDE army vs.
a fantasy army (inspired on the Color-bound Clobberers) as opening
position.

14 years agoAdd variant Makruk
H.G. Muller [Wed, 13 Jan 2010 18:08:45 +0000]
Add variant Makruk

Thai Chess, played by 2 million world-wide. Required pawn promotion to
happen in a zone, and the Alfil to move as Shogi Silver, a new opening
array, and unusual Pawn placement. Because of the latter, I consider it
a setup position, so a FEN will always be sent to the engine.

14 years agoFix parsing of O-O and O-O-O after FEN pasting in FRC
H.G. Muller [Sun, 17 Jan 2010 13:17:10 +0000]
Fix parsing of O-O and O-O-O after FEN pasting in FRC

Because the initial rights were not set in the FEN reader, the
initial rights of the previous game remained in force, so that the
parser did not understand OO-castling (although it would allow KxR
castling).

14 years agoFix reading FEN castling rights for knightmate and twokings
H.G. Muller [Fri, 15 Jan 2010 13:40:43 +0000]
Fix reading FEN castling rights for knightmate and twokings

Scanning the back-rank for a King did not work in these variants,
because either the Unicorn castles, or there might be two Kings.

14 years agoFix omission in castling refactoring for ICS received boards
H.G. Muller [Wed, 13 Jan 2010 10:42:52 +0000]
Fix omission in castling refactoring for ICS received boards

A default of -1 was still used, in stead of NoRights, when no Rook was
found. In theory this could have had effect in a setup board 0 in FRC,
when there were no Rooks on the back rank.

14 years agoFix TwoKings ICS castling-rights bug
H.G. Muller [Wed, 13 Jan 2010 10:35:34 +0000]
Fix TwoKings ICS castling-rights bug

Scanning the rank (as is done because of FRC) assigned castling rights
to the rightmost King. Even scanning the opposite direction would not
work, as it is not always the eftmost King that can castle. So we now
explicitly test for a King on e1/e8 in TwoKings and assign it rights,
relying on the Rook rights received from the ICS to control castling.

14 years agofix double start of zippy engine after switch to gothic
H.G. Muller [Thu, 19 Nov 2009 03:12:25 +0000]
fix double start of zippy engine after switch to gothic

In ICS mode we now switch to the proper variant as soon as we receive
the generic game-start message, to prevent a mismatch when the first
board is received (which would trigger fetching of a move list).

14 years agoExtensive bugfix of -autoKibitz
H.G. Muller [Mon, 11 Jan 2010 15:44:40 +0000]
Extensive bugfix of -autoKibitz

Suppression of printing of diverted kibitz messages failed when they
extended over more than one read. This could even lead to such
messages being erroneously saved as comments, which then lead to
crashes. The suppression mechanism now waits for a prompt, in stead of
the end of buffer. This required the printing of any leftover in the
buffer to be deferred until the next read completes it.
The number of people kibitzed to is now printed.

14 years agoFix piece-to-char table -variant fairy
H.G. Muller [Mon, 11 Jan 2010 15:30:59 +0000]
Fix piece-to-char table -variant fairy

The letters for Lance and Snake where swapped.

14 years agoMake WinBoard makefiles use parser.c in XBoard directory
H.G. Muller [Sat, 9 Jan 2010 10:54:20 +0000]
Make WinBoard makefiles use parser.c in XBoard directory

14 years agoDocs update for new features
H.G. Muller [Fri, 8 Jan 2010 17:23:39 +0000]
Docs update for new features

14 years agoFix new args parsing of -lowTimeWarningColor
H.G. Muller [Fri, 8 Jan 2010 14:18:37 +0000]
Fix new args parsing of -lowTimeWarningColor

This did not occur in the XBoard color translation table yet.

14 years agoAllow editing of holdings in EditPosition mode
H.G. Muller [Fri, 8 Jan 2010 13:16:59 +0000]
Allow editing of holdings in EditPosition mode

Dragging pieces to and from the holdings now consistently keep track of
the home square of pieces and the piece counts, as does creation of
pieces in the holdings through the piece menu.

14 years agoIndicate squares a lifted piece can legally move to
H.G. Muller [Fri, 8 Jan 2010 12:59:57 +0000]
Indicate squares a lifted piece can legally move to

Under control of the new option -showTargetSquares when
-highlightDragging and -testLegality are on, the squares a piece can
move to are marked by fat dots in the highlightColor (non-captures) and
premoveHighlightColor (captures), as soon as you grab it for dragging.
In variants with mandatory capture, the capture target of other pieces
is marked with the highlightColor (as non-captures are then not allowed).

14 years agoFix bug for incommensurate time odds
H.G. Muller [Fri, 8 Jan 2010 11:35:10 +0000]
Fix bug for incommensurate time odds

After normalization (-timeOddsMode 1) the time odds factors can be
non-integer, and thus must be stored as float.

14 years agoDisplay PV right-clicked from EngineOutput window
H.G. Muller [Fri, 8 Jan 2010 10:41:26 +0000]
Display PV right-clicked from EngineOutput window

The clicked PV is selected and the memo gets focus, so that it is
highlighted. This selection is restored in the proper place after
insetrtion of a new line in the memo.

14 years agoDisplay PV on right-clicking board
H.G. Muller [Fri, 8 Jan 2010 09:19:32 +0000]
Display PV on right-clicking board

14 years agoBugfix legality null move in parsing with -testLegality off
H.G. Muller [Fri, 8 Jan 2010 08:21:04 +0000]
Bugfix legality null move in parsing with -testLegality off

The pointers were compared, in stead of the values.
Furthermore, instead of null moves, it rejected moves on the main diagonal when legality checking was off.

Also exclude moves with empty squares and enemy pieces.

14 years agoNewly lexed winboard/parser.c
H.G. Muller [Thu, 7 Jan 2010 18:10:39 +0000]
Newly lexed winboard/parser.c

14 years agoHarmonize declarations of XBoard and WinBoard
H.G. Muller [Thu, 7 Jan 2010 18:05:17 +0000]
Harmonize declarations of XBoard and WinBoard

The engine-exit and settings patches make some stuff common to WinBoard
and XBoard, which needed to be harmonized, and is moved to frontend.h.

14 years agoAllow Ctrl-C copying from EngineOutput window text to clipboard
H.G. Muller [Thu, 7 Jan 2010 12:07:57 +0000]
Allow Ctrl-C copying from EngineOutput window text to clipboard

14 years agoAllow popup-less (fatal) exit of engine after tellusererror
H.G. Muller [Thu, 7 Jan 2010 11:52:17 +0000]
Allow popup-less (fatal) exit of engine after tellusererror

14 years agoImprove layout of Engine #N Settings dialog
H.G. Muller [Thu, 7 Jan 2010 11:40:12 +0000]
Improve layout of Engine #N Settings dialog

An attempt is made to align the input fields of spins and text-edits

14 years agoLet XBoard print version with argument --version or -v
H.G. Muller [Wed, 6 Jan 2010 23:31:11 +0000]
Let XBoard print version with argument --version or -v

14 years agoFix castling rule assignment in shuffle games
H.G. Muller [Wed, 6 Jan 2010 23:25:57 +0000]
Fix castling rule assignment in shuffle games

The conversion to in-board storage for rights copied directly to boards[0] in steadof
initialPosition, and was then overwritten when the latter was copied with uninitialized
rights to boards[0]. This affected FRC and CRC, where rights are non-standard.

14 years agoImplement castling in -variant caparandom
H.G. Muller [Wed, 6 Jan 2010 23:17:25 +0000]
Implement castling in -variant caparandom

CRC should be treated as FRC, but until now it never was. We now test for FRC_TYPE_CASTLING.

14 years agoFix default castling rights on reading incomplete FEN
H.G. Muller [Wed, 6 Jan 2010 23:09:18 +0000]
Fix default castling rights on reading incomplete FEN

This was overlooked in the conversion to the in-board storage of rights.

14 years agoFix NoncompliantFEN defaults.
H.G. Muller [Wed, 6 Jan 2010 23:03:09 +0000]
Fix NoncompliantFEN defaults.

This must be NULL to get compliant FENs, not "", which would suppress castling and e.p. fields.

14 years agoChange format of -adapterCommand.
H.G. Muller [Wed, 6 Jan 2010 22:54:49 +0000]
Change format of -adapterCommand.

first or f at the start of an option name are now automatically changed into second or s,
rather than needing %% to be recognized. The values of -ec and -ed in the default
-adapterCommand are now quoted (now XBoard understands quoting in the engine command line).

14 years agoMake WinBoard defaults for -fd and -sd equal to "." rather than empty strings.
H.G. Muller [Wed, 6 Jan 2010 22:51:16 +0000]
Make WinBoard defaults for -fd and -sd equal to "." rather than empty strings.

14 years agoDelete old indirection settings-file code
H.G. Muller [Wed, 6 Jan 2010 22:28:47 +0000]
Delete old indirection settings-file code

14 years agoCorrect XBoard default debug file name
H.G. Muller [Wed, 6 Jan 2010 20:45:14 +0000]
Correct XBoard default debug file name

14 years agoSuppress saving font settings.
H.G. Muller [Wed, 6 Jan 2010 20:34:48 +0000]
Suppress saving font settings.

The fonts are size dependent, and might thus not be reusable in the next
session. For now we therefore suppress the saving of them in the
settings file, until we diversify the fonts per boardSize.

14 years agoadded missing sounds files to be able to compile on windows
Arun Persaud [Sun, 13 Dec 2009 07:38:20 +0000]
added missing sounds files to be able to compile on windows

14 years agoChanges needed to compile master branch.
Eric Mullins [Thu, 10 Dec 2009 00:29:37 +0000]
Changes needed to compile master branch.

14 years agoimplements the eval-graph window for XBoard
H.G. Muller [Sun, 6 Dec 2009 20:11:46 +0000]
implements the eval-graph window for XBoard

14 years agoimproves the XBoard handling of the engine command line
H.G. Muller [Sun, 6 Dec 2009 19:58:34 +0000]
improves the XBoard handling of the engine command line

it now understands limited forms of quoting, so engine binaries with spaces in their file name can be handled.

14 years agoA better and more flexible way of invoking Polyglot
H.G. Muller [Sun, 6 Dec 2009 19:56:40 +0000]
A better and more flexible way of invoking Polyglot

rewrote uci.c. No more use of temporary files, all data passed through the engine command line. Adds a new command-line option -adapterCommand for this.

14 years agoremove trailing \r in xboard output
H.G. Muller [Sun, 6 Dec 2009 19:34:50 +0000]
remove trailing \r in xboard output

there is an annoying carriage return (displayed as ^M) at the end of the PV in the engine-output window, not
only with Fairy-Max, but also with UCI engine running under Polyglot. This patch replaces the trailing CR that Linux programs send after the PV line y a space.

14 years agodouble buffer size to prevent overflow
H.G. Muller [Sun, 29 Nov 2009 19:56:32 +0000]
double buffer size to prevent overflow

This patch doubles the size of the ICS input buffer to 16KB, to prevent
the suspected overflow with -keepLineBreaksICS false when using
"inchannel 1" on FICS and over 500 people are tuned in.

14 years agofix problem with empty string in -firstNeedsNoncompliantFEN
H.G. Muller [Sat, 28 Nov 2009 21:33:52 +0000]
fix problem with empty string in -firstNeedsNoncompliantFEN

This fixes a bug in the use of the -firstNeedsNoncompliantFEN option with
an empty string as argument. (Which led to truncation of the FEN.)

14 years agoupdates makefiles to include dependency on config.h
H.G. Muller [Sat, 28 Nov 2009 21:32:12 +0000]
updates makefiles to include dependency on config.h

adds the dependency of wbres.o on config.c introduced by having the VersionInfo in the resource

14 years agocorrectly apply some check boxes from the option menu
H.G. Muller [Sat, 28 Nov 2009 21:28:00 +0000]
correctly apply some check boxes from the option menu

Usng the check-boxes in the Option->Adjudications menu to indicate the
engine reports absolute scores is now copied directly to the ChessProgramState,
from where it is used, in stead of only to appData. This makes the change take
effect immediately, in stead of after restarting.

14 years agoscore sign in analysis mode
H.G. Muller [Sat, 28 Nov 2009 21:27:43 +0000]
score sign in analysis mode

this does not alter any of the current behavior with compliant engines,
but does extend the correction for non-compliant score reporting under
control of the -first(second)ScoreIsAbs option to cases where the engine
is analyzing or playing on an ICS.

14 years agofix for bug #28077: xboard needs to link against x11
Arun Persaud [Wed, 25 Nov 2009 05:09:30 +0000]
fix for bug #28077: xboard needs to link against x11

hopefully fixed automake to take care of this

14 years agoFix castling rights when copying FEN to clipboard (again)
H.G. Muller [Tue, 24 Nov 2009 04:37:20 +0000]
Fix castling rights when copying FEN to clipboard (again)

missed a spot last time

14 years agorestoring windows (EngineOutput and MoveHistory) on startup
H.G. Muller [Tue, 24 Nov 2009 04:22:58 +0000]
restoring windows (EngineOutput and MoveHistory) on startup

restoring the open / closed status of the
auxiliary windows (EngineOutput and MoveHistory) on startup
in XBoard like they do in WinBoard, which makes sense now that
we aso remember their coordinates between sessions.

14 years agofixed some outstanding pixmaps
H.G. Muller [Tue, 24 Nov 2009 04:21:14 +0000]
fixed some outstanding pixmaps

fixed transparency issues

14 years agouse linux style options for config file and add a system config file for XBoard
H.G. Muller [Tue, 24 Nov 2009 04:17:25 +0000]
use linux style options for config file and add a system config file for XBoard

This patch makes XBoard write the options to its conf file in
Linux style, "-option value" rather than Windows style "/option=value".

The WinBoard option parsing code has always understood both formats
(including any hybrids), but the format it preferred for writing might
look quite strange to Linux users. I also attached a file to be installed
as /etc/xboard/xboard.conf on "make install".

14 years agofix window positioning
H.G. Muller [Tue, 24 Nov 2009 03:58:55 +0000]
fix window positioning

This patch adds stuff in the header files that allow the various front-end files
to share information on which windows exist, are up, and how they are positioned.
The EngineOutput, MoveHistory and GameList windows now all remember their
position and size, even when they are closed when XBoard exits.

14 years agosame argDescriptor parsing for Xboard and Winbaord
H.G. Muller [Tue, 24 Nov 2009 03:51:19 +0000]
same argDescriptor parsing for Xboard and Winbaord

This patch makes XBoard and WinBoard use the same argDescriptor
list of options, and (largely) use the same code for parsing and saving them.
This is acheived by moving this code to a new file args.h, and #including this
in both winboard.c and xboard.c (so that tiny differences, e.g. in default
values in the table, are decided by the context). XBoard has new menu items
"Save Settings Now" and "Save Settings on Exit" in the "Option" menu.
XBoard uses /etc/xboard/xboard.conf as default settings file.
A new option, -saveSettingsFile, can specify where settings should be saved,
without parsing the file. (So that it also works if the file does not yet exist.)

14 years agonew developer release master-20091122
Arun Persaud [Sun, 22 Nov 2009 21:00:31 +0000]
new developer release

changed release name to <branch>-<date>

14 years agofix the irritating wandering off of the MoveHistory window in XBoard on opening/closing.
H.G. Muller [Sun, 22 Nov 2009 20:34:13 +0000]
fix the irritating wandering off of the MoveHistory window in XBoard on opening/closing.

14 years agouse xtell for talking to handles, but tell for talking into a channel.
H.G. Muller [Sun, 22 Nov 2009 20:29:47 +0000]
use xtell for talking to handles, but tell for talking into a channel.

by changing the chatboxes to use xtell in stead of tell, we broke
the possibility to use the chat-box for chatting into a channel (which is
apparently not possible with xtell).

14 years agofix bug in bughouse drop menu
H.G. Muller [Sun, 22 Nov 2009 20:15:15 +0000]
fix bug in bughouse drop menu

This patch fixes the bughouse drop menu, which was broken by the
new mouse driver, and could no longer drop white Pawns.

14 years ago2nd step for moving option parsing from winboard to the backend
H.G. Muller [Thu, 19 Nov 2009 03:29:57 +0000]
2nd step for moving option parsing from winboard to the backend

This is the next step in option-setting refactoring: All options that are
defined in XBoard are now included in the WinBoard ArgDescriptor list.
The handling of sound option has been harmonized: the sound names
now all initially go to the appData array, (as in XB) in stead of directly to the
WB-specific variables, and LoadAllSounds now takes care of the copying.
A new routine ExportSounds copies them back before saving settings
(which, in XBoard, could be a no-op).

The definition of defaults for the XB-only options has been moved to common.h.

14 years ago1st step for moving option parsing from winboard to the backend
H.G. Muller [Thu, 19 Nov 2009 03:24:35 +0000]
1st step for moving option parsing from winboard to the backend

This is a preparatory step in moving option parsing of WinBoard to the back-end.
The table of command-line options now contains a fifth field, holding the compiled-in default.
This obviates most of the front-end routine InitAppData, which now is replaced by a table-driven
initialization routine SetDefaultsFromList(), which could be back-end.

14 years agorefactoring evalgraph code
H.G. Muller [Wed, 18 Nov 2009 20:33:39 +0000]
refactoring evalgraph code

This is the refactored EvalGraph code: the back-end part is separated off,
and put in a file evalgraph.c, which in the future can also be used with XBoard.
Only the WinBoard front-end code is left in the file wevalgraph.c. A new
header file defines the variables and routines they share.

14 years agoclean-up
Arun Persaud [Wed, 18 Nov 2009 20:29:06 +0000]
clean-up

some file permissions where set up wrong
(e.g. execute permissions for text files)

14 years agorefactoring of engineoutput
H.G. Muller [Wed, 18 Nov 2009 19:34:22 +0000]
refactoring of engineoutput

This refactoring patch separates the back-end part out of
xengineoutput.c, and puts it in a separate file engineoutput.c.
A new header engineoutput.h included by both defines the routines
for cross calling. Similarly wengineo.c will be stripped from its
back-end code, (and renamed to wengineoutput.c), so WinBoard and
XBoard now both use engineoutput.c rather than maintaining duplicate
code in their front-end part.

I also let the back-end now call EngineOutputUpdate directly, rather then
through a relay in the front-end, by renaming it to SetProgramStats
(the former name of the relay in winboard.c / xboard.c).

Moved some templates of functions in engineoutput.c from winboard.h
to frontend.h

14 years agofixed build on openbsd
Arun Persaud [Sun, 15 Nov 2009 06:13:10 +0000]
fixed build on openbsd

added missing header file

14 years agoimprove thinking-output for mulit-variant
H.G. Muller [Sun, 15 Nov 2009 06:06:58 +0000]
improve thinking-output for mulit-variant

Improve multi-variant support by sorting the Thinking-Output lines of the most recent depth by score in the Engine-Output window.

14 years agofix castling rights when copying FEN to clipboard
H.G. Muller [Sun, 15 Nov 2009 06:05:12 +0000]
fix castling rights when copying FEN to clipboard

This patch forces leaving of Edit-Position mode before copying a FEN to the clipboard, to make sure castling rights are faked in a consistent way. Before you could get FENs that had castling rights for non-existent Rooks.

14 years agoThis patch gives a better handling of comments in PGN files, and adds the variation...
H.G. Muller [Sun, 15 Nov 2009 06:03:47 +0000]
This patch gives a better handling of comments in PGN files, and adds the variation as comment to the main line on using Revert in local mode.

14 years agofixed prototype for AppendComment
Arun Persaud [Sat, 7 Nov 2009 02:53:19 +0000]
fixed prototype for AppendComment

14 years agocleaned up some debug messages and typos
H.G. Muller [Fri, 6 Nov 2009 17:06:44 +0000]
cleaned up some debug messages and typos

14 years agovariation-support patch
H.G. Muller [Fri, 6 Nov 2009 17:05:09 +0000]
variation-support patch

It allows you to Revert to the main line (or previous variation) when
playing variations on an existing game in EditGame or Analyze mode.

14 years agofix for new way of saving castling and e.p. information
H.G. Muller [Fri, 6 Nov 2009 16:48:09 +0000]
fix for new way of saving castling and e.p. information

I forgot to make some conversions to the new-style encoding of castling there
(using the enum constant NoRights instead of -1 to indicate
the absence of rights, which was the price of storing the
rights in the board, which is an unsigned enum type.)

I also was a bit worried about portability, because I casted the enum type ChessSquare
to (int) before comparing it with (possibly negative) constants EP_NONE etc.
Now on my system enum types are (unsigned int), and this works, but I could
imagine there are systems where this would be an unsigned char. (Not sure
if there are rules for this). So to be safe I cast ChessSquare to (signed char),
which should always work to make small negative ints assigned to it read
back as themselves.

14 years agoremoved files that should only be in the windboard directory
Arun Persaud [Fri, 6 Nov 2009 16:44:59 +0000]
removed files that should only be in the windboard directory

14 years agoadd Winboard source files into tar-ball
Arun Persaud [Fri, 6 Nov 2009 03:32:35 +0000]
add Winboard source files into tar-ball

forgot to add them when rewriting the Makefile.am

14 years agoIntegrate castling and e.p. rights into board array; bugfix for EditPosition
H.G. Muller [Fri, 6 Nov 2009 03:23:44 +0000]
Integrate castling and e.p. rights into board array; bugfix for EditPosition

A large-scale operation that I have been postponing since the very first 4.4.0:
The castling and e.p. rights are now integrated into the board array, as
boards[moveNr][CASTLING][i] replacing castlingRights[moveNr][i] and
boards[moveNr][EP_STATUS] replacing epStatus[moveNr]
These quantities are now automatically copied with the position by CopyBoards
(allowing the removal of lots of dedicated copying code), and passed as
function arguments with the position (so that the moves.c functions like
TestLegality, MateTest, CoordsToAlgebraic, Disambiguate, GenLegal
no longer need explicit e.p. and castling parameters.

Also fixed a bug introduced by a recent previous fix: by adding fake castling
rights to a position set up through the EditPosition menu, I destroyed the
castling rights of a pasted FEN. Faking castling rights is now made conditional
in EditPositionDone(), depending on the caller. (I had not realized it was also
called after FEN pasting, to send the position to the engine.)

14 years agoadded missing library for build on OS X
Arun Persaud [Fri, 6 Nov 2009 03:03:17 +0000]
added missing library for build on OS X

Xmu seems to be missing

14 years agoSome code refactoring and cleanup; one small bug fix
H.G. Muller [Thu, 5 Nov 2009 06:57:30 +0000]
Some code refactoring and cleanup; one small bug fix

Some code refactoring, mainly to bring definitions of routines and variables
shared between winboard.c and one of the auxiliary-windows files
whistory.c, wevalgraph.c, wgamelist.c, wengineo.c somewere in a header file
(winboard.h). Unfortunately this made winboard.h dependent on data types
defined in frontend.h, so that the #include order had to be changed in many
other .c files.

The operation revealed one potentially bad bug: engineOutputDialogUp was
written as int in engineo.c, but declared as char in winboard.c.

I also changed the storage mechanism of the the comment and tags window
positions to use WindowPlacement structs rather than simple variables,
so that in the future they can be docked, like the others.

I also removed some remnants of the Analysis window.

The wgamelist.h and wedittags.h header files contained only 3 lines, and
I absorbed them in winboard.h, rather than creating other such nearly empty
headers engineo.h, whistory.h and wevalgraph.h. This affects the make files.

14 years agolet the clocks run in -searchTime mode
H.G. Muller [Wed, 4 Nov 2009 02:26:06 +0000]
let the clocks run in -searchTime mode

14 years agoadd fixed time per move to the WinBoard time-control menu dialog
H.G. Muller [Tue, 3 Nov 2009 01:41:12 +0000]
add fixed time per move to the WinBoard time-control menu dialog

14 years agoupdated version number to unstable
Arun Persaud [Sat, 31 Oct 2009 17:42:50 +0000]
updated version number to unstable

14 years agorelease of version 4.4.1 v4.4.1
Arun Persaud [Sat, 31 Oct 2009 17:25:37 +0000]
release of version 4.4.1

14 years agocleaned up ChangeLog and NEWS
H.G. Muller [Sat, 31 Oct 2009 02:59:23 +0000]
cleaned up ChangeLog and NEWS

14 years agouse xtell instead of tell in wchat
H.G. Muller [Sat, 31 Oct 2009 03:02:40 +0000]
use xtell instead of tell in wchat

14 years agoupdated files for a new release, added a shortlog and a diffstat
Arun Persaud [Thu, 29 Oct 2009 05:02:01 +0000]
updated files for a new release, added a shortlog and a diffstat

14 years agoprevent buffer overflow
H.G. Muller [Thu, 29 Oct 2009 03:35:06 +0000]
prevent buffer overflow

This is a buffer-size adjustments to prevent the JAWS version from
crashing when it has to read out loud very long comments.

14 years agoFurther copy/paste fixes
Tim Mann [Wed, 28 Oct 2009 09:17:16 +0000]
Further copy/paste fixes

We needed to implement the XA_TARGETS target in order for more
sophisticated apps to really believe we put anything on the clipboard
they can use.

14 years agoMake copy/paste position and game use clipboard, bug #27810
Tim Mann [Wed, 28 Oct 2009 06:57:25 +0000]
Make copy/paste position and game use clipboard, bug #27810

Copy actually sets both the clipboard and the selection for
convenience and compatibility with the old way of doing things.  Paste
pastes from the clipboard by default, but the new -pasteSelection
option lets you get back the old behavior of pasting from the
selection.

14 years agoswitch focus to the board after loading a game
H.G. Muller [Tue, 27 Oct 2009 22:44:28 +0000]
switch focus to the board after loading a game

14 years agofix for bug #27826: fixed autoDisplayComment
H.G. Muller [Tue, 27 Oct 2009 22:32:07 +0000]
fix for bug #27826: fixed autoDisplayComment

apparently the -autoDisplayComment option was not working,
not even in WinBoard. This patch should fix it,both for WB and XB.
(Unfortunately xboard.c and winboard.c were using a different name
for the same front-end variable I needed, so I had to change one of them.)

14 years agofix for bug #27826: ported two options to xboard
H.G. Muller [Tue, 27 Oct 2009 19:24:56 +0000]
fix for bug #27826: ported two options to xboard

also updated the documentation

14 years agofixed jaws version
H.G. Muller [Tue, 27 Oct 2009 19:22:36 +0000]
fixed jaws version

turns out the new mouse handler broke the JAWS patch, as I discarded
the function IsPromotion. I adapted it to call HasPromotionChoice instead.
Also fixed two arnings by removing a no-longer needed debug print.

14 years agoreformated html to be correctly validated
Arun Persaud [Tue, 27 Oct 2009 19:03:02 +0000]
reformated html to be correctly validated

14 years agoquick fix for "White Mates" in parser.l
H.G. Muller [Tue, 27 Oct 2009 17:33:42 +0000]
quick fix for "White Mates" in parser.l

14 years agofixed a regression
Arun Persaud [Tue, 27 Oct 2009 17:32:24 +0000]
fixed a regression

14 years agochanged stderr to debug output, since stderr is closed in winboard
H.G. Muller [Tue, 27 Oct 2009 03:45:15 +0000]
changed stderr to debug output, since stderr is closed in winboard

14 years agoremoving empty lines from ICS play
H.G. Muller [Tue, 27 Oct 2009 03:42:24 +0000]
removing empty lines from ICS play

this patch causes removal of spurious prompts during ICS play also if the prompt is preceeded by a number of empty lines (as the board for the opponent move is on FICS).

14 years agoanother bug in VriantSwitch: an unitialized board was printed.
H.G. Muller [Tue, 27 Oct 2009 03:40:00 +0000]
another bug in VriantSwitch: an unitialized board was printed.

Must have been there a long time, but this time it crashed WinBoard.

14 years agomore work on variant switch
H.G. Muller [Tue, 27 Oct 2009 03:38:37 +0000]
more work on variant switch

the previous solution to the cosmetic problem of displaying a wrong shuffle
in an ICS game that was observed from the very start unfortunately turned
out to cause a real error in diplaying a stored game through the smoves
command, for variants not using the FIDE setup as standard.

This patch displays the position from before setting up the start position
of the new variant, but does setup boards[0] to the initial position of that
variant. (If this is a wrong shuffle, it is thus ot displayed, and a new board
will immediately be sent from the ICS to correct the shuffle.)

14 years agoforce full redraw in winboard
H.G. Muller [Tue, 27 Oct 2009 03:34:04 +0000]
force full redraw in winboard

Full redraw is now always forced when highlightMovesWithArrow is on,
rather than only when highlight info is available. (As in drop moves the
latter is invalid, but we must still erase the arrow from the previous move.)

14 years agofix for bug #27790 and 277772.
H.G. Muller [Tue, 27 Oct 2009 03:25:55 +0000]
fix for bug #27790 and 277772.

Suppressing the display of a wrong shuffle when observing shuffle games from the first move(#27790 bis), and the sounding of the FICS bell on crazyhouse captures (#27772 bis).

14 years agofixed bug related to unsigned char in convert.c
H.G. Muller [Tue, 27 Oct 2009 03:22:13 +0000]
fixed bug related to unsigned char in convert.c

I also fixed the unsigned-char bug in the convert.c for bitmaps that caused the
129x129 XBoard bitmaps to be defective, and a bug that required fixup with sed
afterwards (so I could use it to create a new m33s.bm)

14 years agounguarded debug printf. added the appropiate if statement
Arun Persaud [Mon, 26 Oct 2009 06:37:48 +0000]
unguarded debug printf. added the appropiate if statement