]> git.draconx.ca Git - rrace.git/commit
Reimplement xcounter based on pre-rendered pixmpas.
authorNick Bowler <nbowler@draconx.ca>
Sat, 24 Dec 2022 05:24:25 +0000 (00:24 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 31 Dec 2022 01:38:26 +0000 (20:38 -0500)
commitbbe659b000e2c281340953c5fc96bd7ac3b94eaa
tree6263b91d0e0b9a99687ca64366998146f58002d6
parent5a4a23e5e8032dfa1f7b73facb32f0c9ab200765
Reimplement xcounter based on pre-rendered pixmpas.

This alters the xcounter idea, instead of caching XmStrings and doing
full-blown font rendering with each update, we can pre-render all the
needed strings to a pixmap and stitch them together using XCopyArea.

This achieves basically the same visual result but clears are eliminated
completely which should further reduce the chances of visible flicker.

While we are rejigging this, tune the state structure to be much
more focused to the actual usage, preferring fixed limits and compact
data representation over dynamic allocation.
src/motif.c
src/motif.h
src/motif_ui.c
src/motifgui.dat
src/xcounter.c
src/xcounter.h