Arun Persaud [Sun, 5 Jan 2014 20:51:50 +0000]
new version number for release 4.7.3
Arun Persaud [Sun, 5 Jan 2014 18:58:48 +0000]
updated copyright to 2014 in menu.c
Arun Persaud [Sun, 5 Jan 2014 18:37:56 +0000]
removed .DS_Store file from git
Arun Persaud [Sun, 5 Jan 2014 18:34:08 +0000]
Updated copyright notice to 2014
Arun Persaud [Sun, 5 Jan 2014 18:27:53 +0000]
cleanup some trailing whitespaces
H.G. Muller [Sun, 29 Dec 2013 12:46:40 +0000]
Fix crash on use of dialog Browse buttons GTK
The code to set a filter did not expect multiple extensions, and would
cause a buffer overrun when there were.
H.G. Muller [Fri, 27 Dec 2013 19:12:23 +0000]
Make building of Windows .hlp file optional
By using && and || operators in the build recipe, the building of WinBoard
with Cygwin is now not aborted whe the Help Compiler is not installed.
H.G. Muller [Sun, 5 Jan 2014 10:47:18 +0000]
Use __APPLE__ compile switch for OS X
It seems that on Apple machines the compiler will always define the
symbol __APPLE__, so this is now used instead of OSX, which had to
be defined with a -DOSX compiler flag. The gtkmacintegration header
is now using <> in stead of "" in its #include. (Strange enough both
were working.)
H.G. Muller [Sat, 4 Jan 2014 11:18:30 +0000]
Expand ~~/ to bundle path (OSX)
DATADIR is #defined in WinBoard as "~~" to make the expansion a no-op
there. Same for Linux compiles. For OS X it is #defined as a variable,
obtained from GTK-OSX at startup.
H.G. Muller [Sun, 29 Dec 2013 22:27:12 +0000]
Activate ManProc in GTK
H.G. Muller [Sun, 29 Dec 2013 21:14:06 +0000]
Remove use of strndup
The use of strndup was actually unsafe, as the length was passed using
an ordinary strlen. strndup was not availableon OS X 10.6, and is now
replaced by an ordinary strdup, which should be save enough.
H.G. Muller [Sun, 29 Dec 2013 21:09:10 +0000]
Put some OSX code into gtk version
Under control of #ifdef OSX code is added to integrate the GTK front-end
into OS X. This involves moving the menu bar to outside the window, and
catching the signal that OS X sends to running applications when opening
another instance was requested. Som files are renamed to conform to the
file tree of the OS X App package.
H.G. Muller [Fri, 27 Dec 2013 20:47:55 +0000]
Cure weirdness when dragging outside of board
Dragging outside the board (when people maximized the window) did not
properly restore background, (leaving a trail of dragged piece). Filling
the canvas with white when it is creatd cured this. The problem most likely
was that unitialized cairo surfaces had transparancy, and writing back
transparancy doesn't helpmuch to erase things.
H.G. Muller [Mon, 9 Dec 2013 13:52:32 +0000]
Fix sorting of lines in Engine Output
Lines tat were fail-lows or fail-ighs should get the scores on the basis
of wich they are sorted corrected to that of te line (for the same move)
superceding them, so that other moves can rise to above them, when they
score higher than the corrected score.
H.G. Muller [Thu, 5 Dec 2013 19:08:35 +0000]
Make filler variant button inactive
H.G. Muller [Thu, 5 Dec 2013 16:50:21 +0000]
Fix packing of FRC castlings
The routine for packing moves to the internal database format was not
working for FRC castlings, totally messing up position search for FRC
and CRC.
H.G. Muller [Thu, 5 Dec 2013 15:23:53 +0000]
Fix Xaw file-browser New Directory
Prevent people from using the error messages that will be printed here
as directory name by pressing New Directory a second time after first
pressing it with an empty or existing name.
H.G. Muller [Thu, 5 Dec 2013 15:14:02 +0000]
Widen Xaw text entries for larger square sizes
Presumably people will use larger fonts if they use larger board squares.
(And in any case te default fonts would be larger.) This means they need
more space to see what is the current value of text options.
H.G. Muller [Thu, 5 Dec 2013 14:47:26 +0000]
Remove width limiting of shuffle checkbox
H.G. Muller [Thu, 28 Nov 2013 12:30:40 +0000]
Allow castling and e.p. to be edited in opening book
H.G. Muller [Mon, 16 Sep 2013 20:32:32 +0000]
Repair FRC A-side castling legality testing
XBoard allowed A-side castling when a rook started on the a-file,
and the b-file was blocked.
H.G. Muller [Mon, 16 Sep 2013 20:27:50 +0000]
Repair XBoard from node-count patch
u64 was #defined in backend.h, which unfortunately was almost alwats
(Not sure why WinBoard did not suffer from this!) This, and related
definitions have now been moved to common.h (which is always #included
first).
H.G. Muller [Sun, 15 Sep 2013 18:13:06 +0000]
WinBoard multi-monitor support
A patch provided by Tim Kosse
H.G. Muller [Sun, 15 Sep 2013 17:28:54 +0000]
Fix node count range
The node count was still clipped to 32 bit because one of the structs
it passes through (FrontEndProgramStats) had the nodes field declared
as an unsigned long.
H.G. Muller [Sun, 15 Sep 2013 17:12:42 +0000]
Fix adjudication of Giveaway stalemates
The case where the side-to-move would win by stalemate was not treated
in the Adjudicate switch.
H.G. Muller [Fri, 30 Aug 2013 15:33:59 +0000]
Fix buffer overflow in parser
When a line ended with a comment, the parser had to read a line ahead
to check if there was a PGNresult following, without being able to
throw away the previous line yet. This could lead to buffer overflow
in a long game where every line ended in a comment. The buffer now is
cleansed of already parsed data when starting on a new syntactical unit.
Arun Persaud [Thu, 29 Aug 2013 04:50:30 +0000]
updated po files for new release (make distcheck)
Arun Persaud [Thu, 29 Aug 2013 04:48:27 +0000]
new version number for release 4.7.2
Arun Persaud [Thu, 29 Aug 2013 04:45:51 +0000]
updated Changelog, NEWS, etc.
H.G. Muller [Tue, 27 Aug 2013 20:55:52 +0000]
Fix -zippyVariants option
Due to the change of cps->variants from (char []) to (char *), copying
zippyVariants to it on behalf of v1 engines would no longer work. This
is fixed by using ASSIGN() in stead of safeStrCpy().
H.G. Muller [Mon, 26 Aug 2013 16:25:55 +0000]
Fix initial board sizing WB
The initial board size was based on the assumption the board would be 8x8.
This could push auxiliary windows off screen if the board was smaller,
after which EnsureOnScreen would undock them and park them in the upper-
right corner before the board assumed its true size. InitPos() is now called
before the initial sizing to et the board format correctly, InitDrawingSizes()
had to be made resitant to calling before a board size was picked for this
(because InitPos() might call that too).
ActivateTheme() now uses the new board size, not the previous one (as was
indicated by size -2), so that -boardSize specifications inside a theme
will take effect.
Board size petite should not be forbidden for Shogi; all pieces exist there.
H.G. Muller [Mon, 26 Aug 2013 12:40:57 +0000]
Fix grabbing of selected piece
A second static click on a selected piece should deselect it, but an attempt
to drag an already selected piece should not 'bounce off'. It was already
possible to move a selected piece to another square, but the dragging was
not animated. This is now fixed, by only skipping the code to start dragging
when the second click is part of the only-move double-click for only capture.
(Before it was skipped on any second click.)
H.G. Muller [Mon, 26 Aug 2013 11:35:47 +0000]
Allow entry of negative numbers in spin control (WB)
Windows numeric controls do not accept negative numbers, so in case the
range of a spin option can go negative, the style ES_NUMBER should not be
set on the control.
H.G. Muller [Mon, 26 Aug 2013 09:37:27 +0000]
Allow drops / promotions/ deferrals to be edited into book
For no real reason only NormalMove would be accepted when parsing the list
of book moves.
H.G. Muller [Mon, 26 Aug 2013 09:28:54 +0000]
Fix GUI book after setup position
The routine to send move to the engine would automatically append a 'go'
is a preious setboard had put the engine in force mode, but this should
not happen on a book hit, where the engine should even be put in force mode
if it was not yet there.
H.G. Muller [Fri, 5 Jul 2013 16:32:46 +0000]
Fix book creation
Due to duplicate use of the same file pointer variable the game file would be
closed before any games were read from it.
H.G. Muller [Mon, 20 May 2013 09:14:01 +0000]
Make PGN parser immune to unprotected time stamps
The parser choked on time stamps of the form dd:dd or dd:dd:dd if one
of the fields happened to be 00, because it wouldmistake that for a
non-compliant king-side castling. By excluding this interpretation when
the 00 is immediately preceded or followed by ':' this is now prevented.
Arun Persaud [Sun, 5 May 2013 15:03:00 +0000]
updated po files for new release (make distcheck)
Arun Persaud [Sun, 5 May 2013 14:57:22 +0000]
new version number for release 4.7.1
Arun Persaud [Sun, 5 May 2013 14:53:54 +0000]
updated Changelog, NEWS, etc.
H.G. Muller [Thu, 2 May 2013 20:47:44 +0000]
Update zippy.README
It is explained how to generate multi-line commands for -zipyGameEnd.
H.G. Muller [Mon, 1 Apr 2013 18:43:36 +0000]
Fix Xaw file browser
The 'next page' entry of the Xaw file browser contained a \177 character
to keep at sorted at the bottom. This caused trouble for gettext.
Now the sorting range is adapted so the 'next page' is never part of it.
More seriously, the listbox fill code had a wrong cast when testing for
an empty listbox on the first element, so that it only tested the low byte
of the pointer, in stead of the entire pointer for NULLness. As a result
the contents of the listboxes could suddenly disappear when even when it
was non-empty, because the first filename was allocated at an unlucky address.
H.G. Muller [Fri, 22 Mar 2013 18:23:25 +0000]
Make Chat Box window obey -topLevel option
It was always popping up as a dialog of the main board, covering it.
One could argue it should always be to-level.
H.G. Muller [Tue, 19 Mar 2013 12:20:24 +0000]
Fix scrolling of Chat Box
Seems the problem is that scroll_to_iter does not work until after some time,
needed to calculate line heights. Use scroll_to_mark instead, after clumsily
adding a text_mark.
H.G. Muller [Sun, 17 Mar 2013 09:33:31 +0000]
Fix GTK SetInsertPos
SetInsertPos() was not yet ported to GTK, with as a result that the cursor
was positioned at the start of a line recalled in the ICS Input Box,
rather than at the end. The code also called SetInsertPos to force scrolling
to that point in the text (which in Xaw is an automatic side effect). So for
multi-line text edits this function calls ScrollToCursor(). For some reason
this does not work when replacing texts in the Chat Box memo, when switching
chat, although it does work in the same memo when a line is added to the
existing text.
H.G. Muller [Thu, 7 Mar 2013 20:38:43 +0000]
Print score of final position in Analyze Game
The score/depth of the final position of the analyed game is added
(as an explicit comment) behind the PV of the forelast position.
To make this work, a new 'addBraces' mode (3) had to be added to
AppendComment, which suppresses stripping of the score/depth from
the comment.
H.G. Muller [Tue, 12 Mar 2013 17:50:08 +0000]
Fix horrible bug in reading scores from PGN
Reading scores like -0.94 flipped the sign, because the integer part
-0 would read as 0, and thus was no reason for sign flipping.
H.G. Muller [Sun, 10 Mar 2013 11:43:59 +0000]
Fix disappearence of pieces that were moved illegally
Dragging damages the from-square, but it is not marked as such, because
selective board redraws to update highlights and such would draw the piece
that is really still there, making it flash on the from-square before
the position after the move is drawn. This, however, backfires when the
move was illegal, as then there is no draw of a new position, and the
from-square stays empty. For now this is solved by making DisplayMoveError()
order a total redraw. (As this is rare, only done in case of an error,
and might even throw up a pop-up, the performance cost of this is acceptable.)
H.G. Muller [Wed, 20 Mar 2013 16:50:33 +0000]
Fix quoting of book name in tourney file
The argument of -polyglotBook was written to the tourney file unquoted,
which effectively made it disappear if it was an empty or blank string.
H.G. Muller [Thu, 7 Mar 2013 17:11:31 +0000]
Provide compatibility with Alien Edition setup command
The setup command of the Alien Edition has a board-size specifier
(possibly as prefix on a parent-variant name) between pieceToCharTable
and FEN. The regular version would choke on that, precluding engines
designed for the Alien protocol extension to have their setup processed
when running under regular XBoard. This patch makes it skip the extra info.
H.G. Muller [Thu, 7 Mar 2013 16:52:02 +0000]
Fix saving of analyzed game
Anotated games after batch-mode Analyze Game were not auto-saved,
because the GameEnds() call supposed to do that was called with a NULL
argument for resultDetails. Now it is called with the resultDetails as
pre-existing in the gameInfo, or an empty string if none exist. This bug
was masked by the fact that in standard game ends (mate, etc.) the
analyzing engine would declare game end and supply a message.
Also makes a distinction between Analyze Game and regular Analyze mode
when resuming analysis after loading a game; only the former now would
trigger a batch analysis.
H.G. Muller [Thu, 7 Mar 2013 16:48:45 +0000]
Fix spurious popup after batch-mode Analyze Game
A batch analysis of games was not properly terminated, because the game
mode was tested after it had already been changed. No oldGameMode is
tested in stead.
H.G. Muller [Sat, 2 Mar 2013 21:21:29 +0000]
Let XBoard -autoBox option also affect move type-in
H.G. Muller [Sat, 2 Mar 2013 21:17:31 +0000]
Fix GTK box popup
Key values > 255 are used for PgUp, PgDown etc., so to pop up only on
printables needs a two-sided test.
H.G. Muller [Fri, 1 Mar 2013 11:50:06 +0000]
Fix fatal error on unsupported board size
When a board size unsupported by the engine was requested through the
New Variant dialog, this was discovered while the dialog was still up,
causing the error message to pop up as a child of the New Variant dialog,
so that it would immediately be taken down as the latter closed.
As a result it could not be confirmed, so that XBoard would not exit, and
was left in a pathologic state (ignoring window-close). This is fixed
by performing Reset (which detects the error) after PopDown of New Variant.
H.G. Muller [Fri, 1 Mar 2013 11:39:40 +0000]
Accept setup command for non-standard board size
The code to test if board-size is standard for the current variant
has been moved to a subroutine, to allow its calling when receiving
a "setup" command from the engine.
H.G. Muller [Fri, 1 Mar 2013 10:57:01 +0000]
Fix buffer overflow in feature parsing
String features (variants, egt, myname and option) relied on a buf[MSG_SIZ]
for processing their value. The Nebiyu engine had combobox options that
required more than that. All string features are now stored in allocated
memory rather than in static arrays, and StringFeature allocates a buffer
of sufficient size for them. Only limitation now is the low-level input
buffer in the InputSource threads, whih is a static buffer of 4096
(=INPUT_SOURCE_BUF_SIZE) characters.
H.G. Muller [Wed, 27 Feb 2013 22:44:55 +0000]
Fix vertical sizing of GTK board
The clipping of the boad at the bottom was due to resizing of the clock
height when we first write it with a big font. This patch delays calculation
of the final size until after the clock height changes.
Arun Persaud [Wed, 27 Feb 2013 05:13:32 +0000]
Updated German translation
Arun Persaud [Wed, 27 Feb 2013 04:27:24 +0000]
Updated Ukrainian translations
H.G. Muller [Tue, 26 Feb 2013 16:59:43 +0000]
Fix of argument error
Oops. Pevious patch for skipping unknown multi-line arguments
was still buggy.
H.G. Muller [Tue, 26 Feb 2013 16:44:10 +0000]
Let popping up of WinBoard chatbox for channel open it
WinBoard now issues a +ch command for a channel when you pop up a chatbox
for that channel. A work-around is added for the fact that the public
FICS seems to ignore the first such command.
H.G. Muller [Tue, 26 Feb 2013 16:27:59 +0000]
Make skipping of unknown option smarter
To make XBoard better resistant to the presence of disbanded or future
options in its settings file, encountering those is no longer a fatal error.
But the error recovery only consisted of skipping the rest of the line.
This fails badly on string options with a multi-line value, which is
enclosed by {braces}. We now detect that case, to skip to } instead.
H.G. Muller [Tue, 26 Feb 2013 16:15:39 +0000]
Add -backupSettingsFile option
For better configurability of WinBoard, an option is added to optionally
read a settings file, namely if no other settings file (other than the
master file) was read so far. This can be used to import settings from
a previous version, without destroying its settings file.
H.G. Muller [Tue, 26 Feb 2013 15:55:20 +0000]
Repair WinBoard compile error
__GITVERSION was not defined in WinBoard, as it was only defined with a
compiler flag by ./configure, which WinBoard does not use.
H.G. Muller [Tue, 26 Feb 2013 15:47:58 +0000]
Work-around for Xt selection bug
In some Xt implementations calling extend-end with 0 params causes a crash,
although the mmanual specifies this should default to a call with 'PRIMARY'.
The default selection is now explicitly mentioned in all extend-end calls.
Christoph Moench-Tegeder [Sun, 24 Feb 2013 17:31:57 +0000]
fix bug #38401: xboard.texi doesn't build with texinfo-5.0 (tiny change)
xboard-4.7.0's documentation is not buildable with texinfo-5.0, it fails with a lot of error messages from makeinfo like
./xboard.texi:1026: @itemx must follow @item
makeinfo seems right, @itemx is not used as described in the texinfo manual.
Attached patch puts each item of the "Options" menu in it's own @subsection and formats the description of each item as a @table as neccessary. This way, xboard builds again and the manual doesn't look too bad.
Arun Persaud [Sun, 24 Feb 2013 17:09:54 +0000]
updated po/pot files
Arun Persaud [Sun, 24 Feb 2013 17:08:39 +0000]
Merge branch 'v4.7.x' to get DIFFSTAT, Changelog, etc up to date in master
Conflicts:
configure.ac
winboard/config.h
Arun Persaud [Sun, 24 Feb 2013 17:04:48 +0000]
new version number for developer release
Arun Persaud [Thu, 21 Feb 2013 06:10:39 +0000]
updated po/pot files
Arun Persaud [Thu, 21 Feb 2013 06:09:50 +0000]
updated Changelog, NEWS, etc.
Arun Persaud [Thu, 21 Feb 2013 05:59:30 +0000]
Merge branch 'master' into v4.7.x
H.G. Muller [Wed, 20 Feb 2013 20:28:36 +0000]
Try to make life more bearable in Xaw menus
The alignment still sucks, but not as much as before.
H.G. Muller [Wed, 20 Feb 2013 18:26:17 +0000]
Fix -topLevel option
This option was copletely ignored, after the refactorig.
H.G. Muller [Wed, 20 Feb 2013 17:16:00 +0000]
Fix testing for valid window placement Xaw
H.G. Muller [Wed, 20 Feb 2013 11:15:08 +0000]
Suppress printing of status line in dual-board mode
H.G. Muller [Wed, 20 Feb 2013 10:56:12 +0000]
Fix sizing of slave board GTK
For lack of a known method to specify a default size for Graph widgets,
we have to use the same system as for the main board: create with 0x0 size,
and measure the size of the outer window to determine margins.
After every popup we then resize to the required board size plus these
margins. (Awful...)
H.G. Muller [Wed, 20 Feb 2013 09:08:09 +0000]
Better handling of undefined window parameters
Repositioning and resizing a newly created dialog was based on the width
parameter of the stored sizing info being valid. Now it is separately
tested if the position is valid, so that sizing and moving can be done
independently. This allows us to store position info, but not size info
for the slave board, so that it automatically will use the size of the
main board when first opened.
H.G. Muller [Tue, 19 Feb 2013 18:14:49 +0000]
Limit debug print to debug mode
H.G. Muller [Tue, 19 Feb 2013 18:14:00 +0000]
Fix repositioning of GTK windows
After 'hide' and 'show' GTK would not position the window in the same place,
but center it on the parent. Now we reposition the window after 'show' based
on the WindowPlacement data (if available).
H.G. Muller [Tue, 19 Feb 2013 17:52:41 +0000]
Remember window params of slave board
The slave board now has been assigned a WindowPlacement, which is also
saved in the settings file, through new options -slaveX/Y/W/H.
H.G. Muller [Tue, 19 Feb 2013 16:48:39 +0000]
Fix repairing of arrow damage
The '2' bit in damage[][] to indicate the arrow was erroneously cleared,
rather than kept.
Arun Persaud [Tue, 19 Feb 2013 03:55:20 +0000]
fix OK-response in gtk dialogs, see
c7f8df124
the fix in
c7f8df124 needs to be applied to both of those if cases
Arun Persaud [Tue, 19 Feb 2013 01:11:32 +0000]
removed two more translations from debug output
Arun Persaud [Tue, 19 Feb 2013 01:09:30 +0000]
fixed segfault of g_markup_printf_escaped which needs utf-8 strings
defined text-domain as utf-8 solved this
Arun Persaud [Mon, 18 Feb 2013 21:38:51 +0000]
fixed gtk-warning
Arun Persaud [Mon, 18 Feb 2013 18:06:36 +0000]
removed some translation calls for messages in the debug log
Arun Persaud [Mon, 18 Feb 2013 17:46:53 +0000]
add keyboard shortcuts back into Xaw version
Arun Persaud [Sun, 17 Feb 2013 22:13:30 +0000]
in debug mode also print the git-version if available during build
H.G. Muller [Mon, 18 Feb 2013 20:19:05 +0000]
Print game-list timing messages only in debug mode
H.G. Muller [Mon, 18 Feb 2013 20:01:35 +0000]
Fix title of top-level windows
H.G. Muller [Mon, 18 Feb 2013 17:51:44 +0000]
Cure GTK warning in top-level windows
There is no OK button in top-level windows, so the 'response' signal is
not defined, and should not be connected.
H.G. Muller [Mon, 18 Feb 2013 17:33:34 +0000]
Fix graying of Revert menu item
The new code was checkmarking it in stead of enabling it!
H.G. Muller [Mon, 18 Feb 2013 10:38:29 +0000]
Add -onlyOwnGames option
This suppresses auto-saving of ICS observed games.
H.G. Muller [Mon, 18 Feb 2013 10:17:16 +0000]
Allow display of 50-move counter in zippy mode
No chance it could be considered cheating there.
H.G. Muller [Mon, 18 Feb 2013 09:48:53 +0000]
Add new vertical pixel fudge
With the new GTK window type the board is 13 pixels too small.
H.G. Muller [Mon, 18 Feb 2013 09:29:17 +0000]
Don't add PV moves on board clicking in AnalyzeMode
Playing PV moves by right-clicking the PV was only intended for clicks
in the engine Output window, selecting from multi-PV analysis output,
where by default it plays only the first move. PV walkig by right-clicking
the board, however, would start the walk at the end even in AnalyzeMode,
and thus add the entire PV. Which is probably not useful. So adding moves
in that case has now completely been suppressed, so it can be used for
harmless viewing of the latest PV.
The behavior has also been made subject to a persistent Boolean option
-appendPV, configured to true, with a checkbox in General Options.
A checkbox has also been added there for controlling the -variations option,
which is now also configured to true.
H.G. Muller [Mon, 18 Feb 2013 09:25:40 +0000]
Remove checkbox for 'Move Sound'
This function is better controlled from the Sounds dialog.
H.G. Muller [Mon, 18 Feb 2013 08:59:48 +0000]
Make switching between board windows absolute
Selecting the window in which to draw the board when the slave board for
-dualBoard was up was done by a toggle. For unknown reason this could cause
a situation where the drawing took place in the other window than the
intended one. The code is made more robust by explicitly specifying which
window to draw in, based on the partnerUp flag.