]> git.draconx.ca Git - rrace.git/commit
x11: Avoid unneeded border clears.
authorNick Bowler <nbowler@draconx.ca>
Wed, 4 Jan 2023 04:19:10 +0000 (23:19 -0500)
committerNick Bowler <nbowler@draconx.ca>
Sat, 7 Jan 2023 16:43:13 +0000 (11:43 -0500)
commitb8d5c7bc17fcb037c23d323d4f8fbdbab9894d9d
tree25238986ad68ad76b13f37508a1ac5a39add7cfb
parent935b93502aeb0c39892a127ac8cb1380652fd61b
x11: Avoid unneeded border clears.

In commit 1ad1b0dcce2a ("motif: simplify border_clear implementation.")
we went slightly too far and actually removed all checks of the tile
mask value, so the border clear calls are done on every draw (only
during the blank border win state).

This kind of defeats the point of the expose handler excluding the blank
border tiles when calculating the mask that is passed in, and means the
rationale that the code being removed did literally nothing was not quite
accurate.

So, we still don't need the fancy computations, but we should check that
the provided mask says to redraw any part of the border before doing it.
src/x11.c