]> git.draconx.ca Git - rrace.git/commit
x11: Improve redraw of empty spaces.
authorNick Bowler <nbowler@draconx.ca>
Wed, 16 Nov 2022 05:16:29 +0000 (00:16 -0500)
committerNick Bowler <nbowler@draconx.ca>
Wed, 16 Nov 2022 06:35:12 +0000 (01:35 -0500)
commita1b5bfc01e1a7ff2b6bf64a9367b87058162047c
treeb01eb902ed0698ad83b9b4b4e046a8d45e055b5f
parentee68c7cd53763caeb44de97f1036ebaf014a7292
x11: Improve redraw of empty spaces.

When the game area is showing only the middle portion with the empty
border, we can clear this with 4 or fewer draw calls instead of 16.
Let's handle this as a special case in the tile drawing code.

Moreover, we don't need to draw anything in these spaces on expose
events, as the exposed areas are already filled with the background.
src/motif_ui.c
src/x11.c