Allow WinBoard to use bitmaps with alpha channel
authorH.G.Muller <hgm@hgm-xboard.(none)>
Wed, 30 Nov 2016 21:27:35 +0000 (22:27 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Fri, 13 Jan 2017 15:39:24 +0000 (16:39 +0100)
commit0c326a397b77561e9cd232549eb98c756f5a8baf
tree4a480556660c398ca4ccefe4c72bcd14a5af71e6
parent8e4a958eea326db65c7621b4c1840cdca97f6d07
Allow WinBoard to use bitmaps with alpha channel

When the primary image of a piece (*o.bmp or *s.bmp) has a format with
32 bit/pixel, it is assumed to be in ARGB format, with transparent
background. It is then drawn over the board accordingly by new code
(using the Win API AlphaBlend routine). This code ignores the allWhite
and flipBlack options for the moment.
  The cascade for loading bitmaps has been changed as well: WinBoard
now first tries to load an image with name like piece0_49o.bmp from the
pieceImageDirectory if the traditional name (like p49o.bmp) is not found,
before falling back on built-in images.
winboard/winboard.c