simon-git: puzzles (master): Simon Tatham
Commits to Tartarus CVS repository.
tartarus-commits at lists.tartarus.org
Sun Jul 5 22:47:22 BST 2015
TL;DR:
aa1a937 Fix redrawing of Undead 'done' clues after a resize.
Repository: git://git.tartarus.org/simon/puzzles.git
On the web: http://tartarus.org/~simon-git/gitweb/?p=puzzles.git
Branch updated: master
Committer: Simon Tatham <anakin at pobox.com>
Date: 2015-07-05 22:47:22
commit aa1a9375be96cd8e0f89a670359c3c80ad7cf937
web diff http://tartarus.org/~simon-git/gitweb/?p=puzzles.git;a=commitdiff;h=aa1a9375be96cd8e0f89a670359c3c80ad7cf937;hp=f306b9db55453f7d7fc824bbbf89ca6ac7d2d273
Author: Simon Tatham <anakin at pobox.com>
Date: Sun Jul 5 21:57:38 2015 +0100
Fix redrawing of Undead 'done' clues after a resize.
The is_hint_stale() function has the side effect of copying a path
hint's new colour-relevant information into the game_drawstate, where
draw_path_hint will then use it. But it returns TRUE early in some
situations, notably !ds->started, which can happen after the actual
game start if the window is resized and a fresh drawstate is created.
This patch, thanks to Chris Boyle, fixes it by eliminating the early
returns from is_hint_stale - the return value is unchanged, but now
the side effects happen reliably.
undead.c | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
More information about the tartarus-commits
mailing list