simon-git: puzzles (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Tue Apr 27 07:12:39 BST 2021
TL;DR:
2d2d7e8 Reinsert some missing screen-clears.
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Simon Tatham <anakin at pobox.com>
Date: 2021-04-27 07:12:39
commit 2d2d7e8678e55d555554203e3ffec44610bc2c25
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=2d2d7e8678e55d555554203e3ffec44610bc2c25;hp=091bef1a8264b677d711f2de1e765035d3d0e3c5
Author: Simon Tatham <anakin at pobox.com>
Date: Tue Apr 27 07:08:08 2021 +0100
Reinsert some missing screen-clears.
I just introduced the 'first_draw' flag in the midend, which should
force a screen clear whenever we draw a puzzle with a fresh drawstate.
But in fact there were several places where the midend replaces the
drawstate and I hadn't set that flag to true.
In particular, a user just reported that when you press 'n' for a new
game in an existing Magnets window, the new puzzle's clues are drawn,
but any old clues in places where the new puzzle doesn't have one is
not _un_drawn. (Because Magnets has no code to undraw a single clue -
it never needs to!)
Added a set of first_draw wherever we call new_drawstate, which should
make this reliable again.
midend.c | 4 ++++
1 file changed, 4 insertions(+)
More information about the tartarus-commits
mailing list