Streamline XBoard board drawing
authorH.G.Muller <hgm@hgm-xboard.(none)>
Mon, 21 Mar 2016 10:33:55 +0000 (11:33 +0100)
committerH.G.Muller <hgm@hgm-xboard.(none)>
Tue, 29 Mar 2016 14:51:33 +0000 (16:51 +0200)
commitd887d2f82c4e05350c23a7563cf6d5dd3efe04d9
treebc7e95a646d4da14da5f3c3cc1a004e9408c1467
parent40c740ae01e3c9694449134e68b7a7bd077fb172
Streamline XBoard board drawing

XBoard was drawing in a very inefficient way. To improve efficiency
alteration of highlights will not immediately be exposed, but be
marked as damage so that a subsequent DrawPosition call will show them.
Squares touched by a to-be-erased arrow will be treated likewise.
The drawing now has three passes: repairing damage (which erases
highlights and arrow), emptying the from-square, and drawing new
pieces and highlights.
board.c
draw.c