diff options
| author | Simon Tatham <anakin@pobox.com> | 2015-07-05 21:57:38 +0100 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2015-07-05 21:57:38 +0100 |
| commit | aa1a9375be96cd8e0f89a670359c3c80ad7cf937 (patch) | |
| tree | b09dac2b9a783d9a6cc05f53dfbeaac876257c4d /html/samegame.html | |
| parent | f306b9db55453f7d7fc824bbbf89ca6ac7d2d273 (diff) | |
| download | puzzles-aa1a9375be96cd8e0f89a670359c3c80ad7cf937.zip puzzles-aa1a9375be96cd8e0f89a670359c3c80ad7cf937.tar.gz puzzles-aa1a9375be96cd8e0f89a670359c3c80ad7cf937.tar.bz2 puzzles-aa1a9375be96cd8e0f89a670359c3c80ad7cf937.tar.xz | |
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.
Diffstat (limited to 'html/samegame.html')
0 files changed, 0 insertions, 0 deletions