Arun Persaud [Thu, 16 Oct 2014 03:57:28 +0000]
update NEWS file
Arun Persaud [Thu, 16 Oct 2014 03:50:51 +0000]
Merge branch 'master' into v4.8.x
H.G.Muller [Wed, 15 Oct 2014 21:48:14 +0000]
Don't switch to engine-defined variant on game loading
When loading a game from PGN the variant tag will have been decoded as
'normal' in case of an engine-defined variant, and we certainly would
not want to switch to that. Better stay in the variant the user had
selected before, and hope for the best.
H.G.Muller [Wed, 15 Oct 2014 19:50:44 +0000]
Implement displaying of variant tag in Game List
The variant tag was displayed as an empty string in game-header lines.
Processing it during PGN load was not able to handle engine-defined
variants anyway; they were recognized as 'normal'. A new field in the
GameInfo struct now holds variantName in text form, and this is the
primary place from which it is displayed in the Game List.
H.G.Muller [Wed, 15 Oct 2014 19:06:53 +0000]
Update Game List when setting new Game List Tags
Using the Game List Tags dialog to alter the gae header lines now
automatically causes an update of the Game list according to the new
tags specification.
H.G.Muller [Wed, 15 Oct 2014 18:26:31 +0000]
Reset move entry on Clear Board
The board markers would stay on when the board was cleared, and a
no-longer-present piece would stay selected, leading to deletion of the
first piece that you tried to select.
H.G.Muller [Tue, 14 Oct 2014 07:38:05 +0000]
Split Tournament dialog in side-by-side panes
This seems to cure a sickness in some Xaw versions, which refused
to display text in the text widgets, or make them sensitive for mouse
clicks if the last three buttons were added. It also helps keeping
the 'OK' button on-screen in the GTK version.
H.G.Muller [Sun, 12 Oct 2014 17:43:24 +0000]
Remember position obtained from setup
When the engine sends a setup command, it should be remembered as
initialPosition, in order for the castling 'rook' test of the Betza
move generator to work.
Joshua Pettus [Sat, 13 Sep 2014 19:35:12 +0000]
Add build script to configure for a XBoard.app for OS X
This relies on the the gtk build and adds some special code in
gtk/xboard.c so that XBoard can be installed inside the app directory
independ on where the app file is located.
Arun Persaud [Sun, 12 Oct 2014 17:09:51 +0000]
replaced hardcoded pngdir with built-in ~~
don't need to create xboard.conf from xboard.conf.in anymore
H.G.Muller [Sat, 11 Oct 2014 22:18:50 +0000]
Some improvement on new Shogi SVG pieces
Arun Persaud [Sat, 11 Oct 2014 17:55:41 +0000]
updated spanish, ukranian, and dutch translation
Arun Persaud [Sat, 11 Oct 2014 17:53:46 +0000]
Merge branch 'master' into v4.8.x
H.G.Muller [Sat, 11 Oct 2014 17:42:03 +0000]
Fix logos Xaw
The patch for logo standard left a typo and an excess line in the Xaw
version. This is fixed, and also implements the user-logo cascade for
the Xaw version.
H.G.Muller [Sat, 11 Oct 2014 17:26:23 +0000]
Try also /home/<user>/.logo.pgn for user logo
The user logo now also has a cascade, first looking in the user's home
folder for a file .logo.png, and then in the -logoDir for <user>.png.
H.G.Muller [Sat, 11 Oct 2014 14:38:03 +0000]
Fix ICS logo display
H.G.Muller [Fri, 10 Oct 2014 16:14:09 +0000]
Show current variant on New Variant buttons GTK in bold
If an engine-defined variant is selected, we compare its name to the
inscription on the button, otherwise we compare the variant numbers.
(Test to trigger this is a bit awkward, to not inadvertantly apply it
to the ICS Text Menu, which also has colored buttoms.)
H.G.Muller [Fri, 10 Oct 2014 15:01:51 +0000]
Increase number of engine-defined-variants Buttons XB
An third column is added to the New Variant dialog when necessary.
H.G.Muller [Thu, 9 Oct 2014 21:25:26 +0000]
Force GTK logo size to quarter board width
This is what GTK will do anyway, because clocks and logos are in a hbox
that equally divides space, so telling XBoard different just misinforms it.
H.G.Muller [Thu, 9 Oct 2014 15:08:45 +0000]
Replace default Shogi pieces
The SVG Shogi pieces are replaced by a new set, made by Joshua Pettus.
This set also contains and Elephant and Crown Prince.
H.G.Muller [Thu, 9 Oct 2014 07:35:33 +0000]
Implement new logo standard
XBoard now looks in the system directories for plugin logos,
/usr/(local/)share/games/plugins/logos, according to the cascade
-logoDir, engine dir (-fd,-sd), /usr/local/..., /usr/...
H.G.Muller [Thu, 9 Oct 2014 06:47:25 +0000]
Relocate OS X' LOCALEDIR
H.G.Muller [Wed, 8 Oct 2014 19:56:28 +0000]
Fix check test with multi-leg moves
The check test after a multi-leg move was still using the same kill
square in the opponent's reply, making it blind to King captures in
a second leg. So far we got away with that because the Shogi multi-leg
pieces also can reach all their potential victims in a single step,
but with engine-defined multi-leg moves there is no guarantee this
will always be the case.
H.G.Muller [Wed, 8 Oct 2014 19:55:17 +0000]
Fix infinite loop in cylinder moves
H.G.Muller [Tue, 7 Oct 2014 17:13:54 +0000]
Let t on final leg in Betza notation forbid checking
To allow approximate definition of pieces that are too difficult to
describe exactly, we can revoke their capture rights on Kings,
to prevent imagined moves that happen to threaten a King forces the
opponent to evade this imagined check, making most of his moves illegal.
Then the piece can be safely replaced by an upward-compatible one,
leaving rejection of the extra moves to the engine.
H.G.Muller [Tue, 7 Oct 2014 16:56:59 +0000]
Implement Betza hr and hr as chiral move sets
To easily separate right- and left-handed moves on oblique atoms
(which needs opposite use of l and r in their multi-leg continuations),
the direction sets hr and hl are added.
H.G.Muller [Tue, 7 Oct 2014 06:20:06 +0000]
Preserve other Betza mode bits on setting default modality
H.G.Muller [Mon, 6 Oct 2014 18:20:00 +0000]
Switch to new Betza orth-diag conversion standard
The interconversion from orthogonal to diagonal atoms is now possible
for any 4-way atom, based on specification of an 'in-between' direction,
irrespective of modality. Also take backward out of default continuation
direction-set.
H.G.Muller [Fri, 3 Oct 2014 08:31:47 +0000]
Implement Betza t modifier for hop-own
The 't' modifier will restrict any form of hopping as specified by
p or g modifiers to friendly pieces. This only works on non-final legs.
H.G.Muller [Thu, 2 Oct 2014 17:32:45 +0000]
Implement directional modifiers on KQ, and let y&g upgrade
The Betza y and g modifiers now not only change range, but also upgrade
the directional capabilities of the atom to full non-degenerate 8-fold.
Directional modifiers can now be used in that symmetry too, to maximally
exploit this, and implement 4-fold pieces that make 45-degree turns.
Let oblique continuation legs also use the non-degenerate system.
H.G.Muller [Thu, 2 Oct 2014 13:19:09 +0000]
Implement Betza y modifier
The non-standard modifier 'y' is the spontaneous counterpart of 'g',
changing the range of the atom, and upgrading its directionality.
H.G.Muller [Thu, 2 Oct 2014 08:21:43 +0000]
Implement Betza g modifier for non-final legs
The g modifier is implemented as a p that turns a rider into the
corresponding leaper when it hops, and vice versa. This is done by
stripping off any existing range indicator, and making the range
infinite by suffixing '0' when the old range was 1 (whether implied
or explicitly written). Except that for sliders/steppers this is done
by atom-name conversion after stripping off the range. Limited range
thus in general turns into leaper (D -> D0, Dn -> D), but with FWK
W3 -> R and R3 -> W, etc.
H.G.Muller [Wed, 1 Oct 2014 13:32:14 +0000]
Implement Betza a modifier
This is pretty complex, and might overload the current primitive two-leg
legality testing when pieces are defined that can reach squares only in
two legs.
H.G.Muller [Wed, 1 Oct 2014 07:28:32 +0000]
Implement Betza j on W,F as skip first square
H.G.Muller [Sat, 4 Oct 2014 19:56:14 +0000]
Always accept piece commands for Falcon and Cobra
The wild-card pieces Falcon and Cobra do not have any moves assigned to
them, and XBoard would accept any move for them even when legality
checking is on. So for these pieces it is always better to trust the
engine's piece definition.
H.G.Muller [Sat, 4 Oct 2014 19:52:51 +0000]
Fix pieceToCharTable of Falcon Chess
This variant was using the Falcon piece, but defining ID F for the
unused Lance instead.
H.G.Muller [Sat, 4 Oct 2014 17:59:13 +0000]
Don't preserve setup position on board-size change
Normally the setup command sent by an engine is ignored if the user
already has set up a position, to not render it impossible to do the
latter. But if the setup command orders a different board size nothing
the user has set up can possibly remain valid.
H.G.Muller [Sat, 4 Oct 2014 17:39:06 +0000]
Reset move entry on stepping through game
A forward or backward step through the game after selecting a from-square
did not erase the latter, so that it became impossible to select a
from-square for an opponent move, as it would be interpreted as the
to-square for the patially entered move. This was especially annoying
with legality testing off, as the legality test there, based on the
square markings, does not reset the entry state either, but waits
until you do click a legal to-square, so that you had to attempt
moving with pieces of the side not to move to get out of this state.
Now stepping through another position will reset the move-entry state
completely, always considering the first click a from-square selection.
H.G.Muller [Tue, 7 Oct 2014 18:55:00 +0000]
Fix engine-defined variant as startup
Non-standard names were all recognized as 'normal' in InitBackend1().
Now if the -variant argument was not "normal", it is assumed to be an
engine-defined variant if we run with engine.
H.G.Muller [Tue, 7 Oct 2014 16:53:50 +0000]
Fix clipping of board GTK
ResizeBoardWindow now measures the with of the window dressing by
brute force, interrogating GTK both for the width of the top-level
window and the board widget, and subtracting the two.
H.G.Muller [Wed, 8 Oct 2014 16:28:09 +0000]
Fix writing of Seirawan960 virginity in FEN
When variant seirawan was played with Fischer castling, only the
castling rights were written, and not the virginity of other pieces.
Now all virgin files are dumped in Shredder-FEN style.
Arun Persaud [Tue, 30 Sep 2014 04:07:17 +0000]
update po/pot files
Arun Persaud [Tue, 30 Sep 2014 04:00:42 +0000]
new version number for release 4.8.0
Arun Persaud [Sat, 13 Sep 2014 21:33:37 +0000]
fixed whitespace error in configure.ac for os x
Arun Persaud [Sat, 20 Sep 2014 17:06:17 +0000]
update gettext configuration to not include any generated files in git
before we had a somewhat mixed setup, which seems to create problems
when a different gettext version was installed on the users machine compared
to the version used to generate the files in git. This should solve
the problem. The user will now have to generate these files using autopoint,
which we call from autogen.sh.
H.G.Muller [Sun, 28 Sep 2014 20:19:00 +0000]
Configure XBoard for -size 49 in master settings
Now the code for auto-sizing works, it turns out this does more harm than
good in the GTK build, as it takes maximum size that fits the screen as
initial size, and the board window then cannot be shrunk below that.
So we configure a hard -size 49 for a cold startup.
H.G.Muller [Sun, 28 Sep 2014 19:27:22 +0000]
Implement ff etc. in Betza parser
Dupliacated directional modifiers can be needed with oblique moves
to unambiguously specify a direction set, e.g. ffrrN.
H.G.Muller [Sun, 28 Sep 2014 11:40:13 +0000]
Rename PGN Pieces tag to VariantMen
Following a suggestion from Steven Edwards, this indeed makes a much
clearer name. Also add code to skip the tag on reading, rather than
allowing it to end up with the 'extra tags', as the latter could lead
to duplication of the tag on subsequent saves.
H.G.Muller [Sun, 28 Sep 2014 09:18:10 +0000]
Suppress use of promo-Gold bitmaps in Tori Shogi (WB)
In Tori Shogi the Swallow Pawn does not promote to Tokin, so the use
of a Gold General pictogram would only be confusing. So we stick to
the regular fairy bitmaps in Tori, which is recognized by the board
having 7 ranks in Shogi.
H.G.Muller [Sun, 28 Sep 2014 08:55:10 +0000]
Prevent board-size oscillations
It could happen that after resize there was room for enlarging the
squares by one pixel, but that this crossed the boundary where the line
gaps also become wider, and there is no room for making both squares
and line gap. This would cause perpetual oscillations of the window size.
Resizing is now suppressed when a 1-pixel square-size increase would also
result in a line-gap increase.
H.G.Muller [Sun, 28 Sep 2014 08:09:17 +0000]
Allow use of second-row pieces for non-promoted in drop games
Second-row pieces were automatically demoted on capture, but this
should really happen only when the piece-to-char table says it is a
shogi-promoted piece (assigned a '+' there). Pieces assigned a letter
should really stay themselves.
PieceToNumber had to be adapted to skip '+' pieces in order to count
correctly for second-row pieces, as did the code in UserMoveEvent() that
mapped the from-square onto the piece type. (Why do we do that anyway?
The piece type was displayed on the from-square!)
H.G.Muller [Fri, 26 Sep 2014 18:24:05 +0000]
Fix reset of 50-move counter on FRC castling
The FxR internal representation was taken a bit too seriously!
H.G.Muller [Fri, 26 Sep 2014 18:15:33 +0000]
Fix abort of machine game on variant mismatch
When the second engine did not support the current variant, and we clicked
Two Machines, there was an error popup, but the Two Machines menu item
stayed checkmarked. Now we explicitly uncheck it, and switch to EditGame
mode.
H.G.Muller [Fri, 26 Sep 2014 17:47:08 +0000]
Make unsupported variant on loading 1st engine non-fatal
Like in the startup code, when the loaded engine does not play the
currently selected variant, we now figure out what the engine does play,
and switch to that. The error message still pops up, but not non-fatal.
H.G.Muller [Thu, 25 Sep 2014 21:37:24 +0000]
Print PGN Piece tag listing engine-defined pieces
A newly defined PGN tag is printed, which summarizes all non-standard
pieces. Black copies of identically named white pieces are suppressed.
In the future also non-standard naming should be reported here.
H.G.Muller [Thu, 25 Sep 2014 17:11:21 +0000]
Always accept piece commands in partly supported variants
Normally piece commands are ignored when legality checking is on, as
XBoard's idea of legality should obviously overrule the engine's.
In variants that are not or only partly supported, however, XBoard has
no own idea of what is legal, so it is better to take the engine's
advice than enforcing wrong rules.
H.G.Muller [Thu, 25 Sep 2014 10:29:15 +0000]
Size seek graph to also cover board rim WinBoard
The seek graph always used the plain board size, but in WB it is
possible to diplay a rim around the board, and the seekgraph would
then be positioned in the upper-left corner of the rim, leaving the
lower and right board edge and rim uncovered. Its size is now increased
to fill the entire window (as leaving a rim around it seems not useful).
H.G.Muller [Thu, 25 Sep 2014 09:48:00 +0000]
Reparse ambiguous move under built-in rules
When a move parses as ambiguous under engine-defined piece locomotion,
we re-parse it with XBoard's native idea of the pieces, just in case
it is a move from a game that was saved without the engine having
redefined the pieces. This keeps games created before the introduction
of the 'piece' command loadable.
H.G.Muller [Thu, 25 Sep 2014 09:14:06 +0000]
Prevent multi-path moves from parsing as ambiguous
In Cylinder Chess the MovesFromString() generator might generate duplicate
moves, one wrapping, the other direct. When they were both counted as
matching the SAN input move, Disambiguate() would think it an ambiguous
move. So a move that came from the same square as the one we already
have must not be counted.
H.G.Muller [Wed, 24 Sep 2014 19:47:59 +0000]
Fix cross-edge e.p. capture in Cylinder Chess
ApplyMove() did not remove the e.p. victim when an edge-crossing e.p.
capture was made, because e.p. rights are only set to neighboring files
(after checking there is a Pawn there to capture). The e.p. heuristic
has now been changed to also assume e.p. on file-changing Pawn moves
that span a large number of files, assuming that these will be wrapping
moves. Eventually we should change to better e.p. logic that can be
integrated with engine-configured move generation, as the current system
would fail for any Pawn that captures more than just neighbor ranks.
H.G.Muller [Wed, 24 Sep 2014 17:43:27 +0000]
Implement Betza o modifier for cylinder boards
H.G.Muller [Wed, 24 Sep 2014 15:02:37 +0000]
Improve virginity test for engine-defined pieces
Two squares in the board are now reserved for flags that indicate
whether back-rank pieces have been touched. This allows MovesFromString()
to accurately test virginity of these pieces, rather than having to assume
it when the piece matches that in the opening position. For other ranks
the latter test is still used, as these are normally (irreversible) Pawns,
which cannot return there (and in drop games, when they would, would again
be considered virgin enough for the purpose of double-pushing!).
H.G.Muller [Wed, 24 Sep 2014 11:20:31 +0000]
Implement Betza p and g modifiers in piece command
H.G.Muller [Wed, 24 Sep 2014 06:28:40 +0000]
Repair piece defs with showTargetSquares off
The proxy legality checking based on marking of target square was
rejecting all moves when target squares were not highlighted.
H.G.Muller [Tue, 23 Sep 2014 19:53:55 +0000]
Allow definition of castling in piece command
Castling is defined by the O atom, with a suffix indicating the number
of steps the King must step in the direction of the corner. Kings keep
their normal castling unless overruled by this. Can currently only be
used on the variant's royal piece, as XBoard's ApplyMove() is not smart
enough to understand displacing the corner piece is implied when it is
used on other pieces.
H.G.Muller [Tue, 23 Sep 2014 19:49:44 +0000]
Update description of piece command in protocol specs
H.G.Muller [Tue, 23 Sep 2014 12:52:16 +0000]
Improve SAN of Pawn moves and allow Betza e.p. definition
The move descriptions in 'piece' commands can now use 'i' and 'n'
modifiers to define a blockable double push. ('n' only work for moves
of stride 2!) The test for initial moves now is based on comparison with
the opening position, rather than on a way-to-generous heuristic. (This
still does not prove in generak the piece did not move, though, but it
does for Pawns.) A new 'e' modifier stands for e.p. capture; to implement
this the rank and file of the e.p. square are now stored in the board.
(EP_STATUS was holding the file of the moved Pawn, which in Berolina Chess
is not the file of the e.p. square!)
The generation of SAN moves for Pawns can now reliably distinguish between
captures and non-captures even in Berolina, when the move generator informs
it whether the move was e.p. capture.
H.G.Muller [Mon, 22 Sep 2014 20:48:50 +0000]
Retune -stickyWindows GTK
This still does not work well, and in particular windows refuse to stick
to the top of the board window.
H.G.Muller [Mon, 22 Sep 2014 19:59:00 +0000]
Fix detection of screen size GTK
A gdk call that can get the screen without there first being a window
mapped to it is used now. This fixes initial sizing of the board window
on a cold start.
H.G.Muller [Mon, 22 Sep 2014 19:57:23 +0000]
Configure a size for the Eval Graph
If no size for the Eval Graph window is configured in the master
settings file, the window will pop up as 2x4 pixels.
H.G.Muller [Mon, 22 Sep 2014 18:39:21 +0000]
Prevent crash on specifying non-existent texture XB
By setting the texture width to 0 when the texture could not be loaded,
XBoard will never attempt to draw it.
H.G.Muller [Mon, 22 Sep 2014 18:30:50 +0000]
Configure some themes in XBoard master settings
The -themeNames option is set to contain some themes that could be
defined with the default pieces and textures that come with XBoard.
H.G.Muller [Mon, 22 Sep 2014 16:48:00 +0000]
Remove debug printf
H.G.Muller [Sun, 21 Sep 2014 14:47:41 +0000]
Control Eval Graph with mouse
Let mousewheel control evalZoom, and right-click toggle between
normal view and differential view ('blunder graph').
H.G.Muller [Sun, 21 Sep 2014 14:10:19 +0000]
Add extra font field to Option struct
Storing the font in the textValue field was too kludgy, as this field
is already heavily used in the various Option types, for storing handles,
or defining colors and callbacks. A 'font' field is now added at the end,
so that it can be optionally initialized in the rare case it is needed.
H.G.Muller [Sun, 21 Sep 2014 11:44:11 +0000]
Repair damage done by merging with v4.7.x
H.G.Muller [Sun, 21 Sep 2014 06:36:22 +0000]
Sort fail lows and fail highs below others
Every more recent line should always float up aove lines that were
indicated to be fail lows or fail highs through ? or ! PV suffixes.
H.G.Muller [Sat, 20 Sep 2014 10:58:32 +0000]
Describe the new texture conventions in manual
The exact rules for how textures are scaled in response to their
filename is described in the manual.
H.G.Muller [Fri, 19 Sep 2014 08:22:14 +0000]
Force exactly overlayed texture scaling through filename
A filename suffix -NxM.png on a texture image will cause XBoard to scale
the image as if it were the image of a complete board of N files and M
ranks, to make the square size equal to that of the current board,
and adjust the cutting parameters such that contiguous squares are cut
out of it. (If the current board format is larger than NxM, the remaining
space will be padded with white!)
If N=M=0, N and M are assumed to correspond to the current board size,
and the bitmap will be scaled to fit the height of the board.
If no suffix is present, the old cut-and-tile algorithm is used. It will
be assumed the texture bitmap is intended for a single square, unless the
pathname contains a file that starts with "xq", in which case it is assumed
that the file contains a Xiangqi board.
H.G.Muller [Thu, 18 Sep 2014 21:30:09 +0000]
Allow two Pawns per file in Tori Shogi
When the board has 7 ranks it is assumed to be Tori Shogi, and the
requirement for maximally one Pawn per file is relaxed to two.
H.G.Muller [Thu, 18 Sep 2014 21:08:36 +0000]
Test legality even when off if engine defined pieces
After reception of a piece command XBoard will mark target squares
even when legality testing is off, and now also will require the lifted
piece to land on a marked square (like when the engine highlighted them
through a highlight command).
A problem is that this does not work for drops, as drops do not mark
target squares. So drops are always accepted. Which of course is bad
for Pawn drops. But there really is no way yet for an engine to specify
how pieces can be dropped, similar to the 'piece' command.
H.G.Muller [Wed, 17 Sep 2014 20:32:43 +0000]
Fix texture scaling
H.G.Muller [Wed, 17 Sep 2014 11:41:58 +0000]
Implement engine-defined pieces
When legality testing is off, XBoard now listens to 'piece' commands
to redefine its move generator. After such a piece command is received,
target-square marking also can be used when legality testing is off.
The engine keeps in charge of legality testing, though.
Only a very basic version of Betza notation is currently understood for
the move description: mode modifiers have to appear in the order mcd,
and gpz modifiers are ignored. Multi-leg moves as in Betza 2.0 is not
implemented at all. A leading i modifier limits the moves to the first
two ranks, which is no good at all. (But XBoard does not keep track of
which pieces have moved, and this at least would work for Pawns in a
FIDE-like setup, in particular Berolina.)
H.G.Muller [Wed, 17 Sep 2014 07:44:15 +0000]
Scale texture bitmaps that are not large enough
Texture bitmaps are now sized up by an integer factor to be at least
as large as the board (if they seem intended for a full XQ board, which is
assumed when they are larger than 256x256) or the square. This necessitated
the textures to be re-initialized in InitDrawingSizes whenever the window
size changes.
H.G.Muller [Tue, 16 Sep 2014 17:04:19 +0000]
Ignore color arguments not starting with #
Old settings files from xpm-using version might still contain color
designations like 'white' or 'red'. Since Cairo would interpret these
as black, it is better to ignore them, so the default color is used.
H.G.Muller [Mon, 15 Sep 2014 13:30:40 +0000]
Implement -autoInstall option
When -autoInstall is a non-empty string, XBoard will scan the system's
plugin specs directories for UCI and WB protocol, to see if new engines
were added since the last settings save. If so, they are added to the
list of installed engines.
The variants listed in the plugin-spec files are currently ignored,
but the option is already configured to install engines for all variants.
H.G.Muller [Sun, 14 Sep 2014 20:47:55 +0000]
Fix typo
H.G.Muller [Sun, 14 Sep 2014 19:41:04 +0000]
Make inlined functions static
Clang apparently chokes on non-static inline functions,
and they were not used from other files anyway.
Arun Persaud [Wed, 10 Sep 2014 03:29:15 +0000]
updated spanish translation, added new polish translation
H.G.Muller [Sat, 13 Sep 2014 07:12:54 +0000]
Look for logo in engine dir first (GTK)
When setting engine logos, we look for a file logo.png in the engine
directory, before trying <enginename>.png in the -logoDir. This is useful
on OS X. Fix bug that checks for existence of -fd/sd rather than -logoDir,
when using the latter (also in Xaw).
H.G.Muller [Thu, 11 Sep 2014 21:10:59 +0000]
Fix checkmarking of OS X menu items
The routine MarkMenuItem() was moved to xboard.c, where it can see
the OSX-specific #defines, and calls to sync_menu_bar were added
to it, and to EnableNamendMenuItem().
H.G.Muller [Thu, 11 Sep 2014 20:48:10 +0000]
Fix crash of tournament dialog GTK
The font/color disambiguation of the Option.textField in Label and
ulti-line TextBox options cannot stand it if unused elements are
initialized as "" rather than NULL.
H.G.Muller [Thu, 11 Sep 2014 17:17:55 +0000]
Let OS X display dock icon
H.G.Muller [Thu, 11 Sep 2014 10:41:50 +0000]
Fix Xaw button color error
The textValue field, now also used to indicate font, was used in two
places when popping up buttons, and the font patch only addressed one.
H.G.Muller [Thu, 11 Sep 2014 08:23:42 +0000]
Make SVGDIR a variable
Replace all occurrences of SVGDIR in the source by svgDir, a char array
that is initialized to SVGDIR, so that it can be altered at run time.
This is needed to make portable apps. Where SVGDIR was used in string
concatenation, the code had to be re-written to use snprintf to do the
concatenation at run time, through a new function LoadIconFile.
The extension of image files used there is now made dependent on the
__APPLE__ switch, so that it can use .png in OS X (which does not seem
to understand SVG icons).
H.G.Muller [Wed, 10 Sep 2014 19:20:40 +0000]
Fix warning in dead code Show
H.G.Muller [Wed, 10 Sep 2014 18:49:38 +0000]
Reorder variants, to comply with Polyglot book specs
XBoard's variant number is used as a key to access Polyglot opening
books, and thus cannot be changed without consequences. (As it was when
we introduced ASEAN and Chu Shogi.)
We also renamed Chu Chess to Elven Chess (under which name it is now
described on chessvariants.org).
H.G.Muller [Wed, 10 Sep 2014 17:52:12 +0000]
Reserve piece command in protocol specs
H.G.Muller [Wed, 10 Sep 2014 16:54:45 +0000]
suppress Alien Edition standard variants
Variants that are standard in the Alien Edition should not be
recognized as engine-defined variants: the engines that announce
them will not respond with the required setup command, so allowing
the user to select them just leads to trouble.
H.G.Muller [Wed, 10 Sep 2014 11:51:44 +0000]
Fix SetWidgetFont GTK
This was testing for an empty font spec in the wrong way, with as a side
effect that some pointers to font strings would be interpreted as colors.