Add option -jewelled to decide which King is a Zebra XB
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 20 Apr 2016 12:44:13 +0000 (14:44 +0200)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Sun, 8 May 2016 12:06:33 +0000 (14:06 +0200)
commit2f0884e0846edf141d42ea2d5e3fcbc6949f50f6
treeef87d074e598a0e5e1cfe32a7b8333b57a717f73
parent2f01bb8999d70efca9c02853ebe641ad14be6124
Add option -jewelled to decide which King is a Zebra XB

A new volatile option -jewelled is added, with default value -1.
When it is set to 0 the King image will be replaced by the Zebra image,
when it is 1 the same thing will happen to the black King. This color
testing will be done before the swapping of colors ordered by -flipBlack,
so that the color rather than the side of the (possibly flipped) board
decides which King is displayed as Zebra. (While the board side determines
whether a white or black Zebra will then be used in -flibBlack mode).
Shogi themes can use this by providing a Jewelled General as Zebra (a piece
that was not used in any Shogi variant).
args.h
common.h
draw.c