]> git.draconx.ca Git - rrace.git/commit
motif: State structure cleanup
authorNick Bowler <nbowler@draconx.ca>
Sat, 31 Dec 2022 01:52:23 +0000 (20:52 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 7 Jan 2023 16:43:12 +0000 (11:43 -0500)
commitca97af514870895e228df0443adc5a16be4d9a78
treeec6ff52665d2dae2d2a30d110201e8486e8f5323
parentceb2df0fe41852ba3f5637dcd04217113b4259ba
motif: State structure cleanup

- We don't actually need to store the render task IDs in the
  state structure; the only thing we actually care about is to
  avoid multiple registration.  We can use two otherwise-unused
  bits of the render mask to track this.

- The window size tracking is no longer used, so these members
  are just a waste of space and can be removed.

- The remaining members can be rearranged to avoid padding.
common
src/game.h
src/motif.c
src/motif.h
src/motif_ui.c
src/x11.c
t/boardmove.c