simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Tue Aug 8 22:52:15 BST 2023
TL;DR:
78af0c8 Guess: move hold marker upward by two pixels
Repository: https://git.tartarus.org/simon/puzzles.git
On the web: https://git.tartarus.org/?p=simon/puzzles.git
Branch updated: main
Committer: Ben Harris <bjh21 at bjh21.me.uk>
Date: 2023-08-08 22:52:15
commit 78af0c821aa01f9e4a127b5b5f197fd1c8a22686
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=78af0c821aa01f9e4a127b5b5f197fd1c8a22686;hp=6d4b20c413811a9f88e5be97128b7dd6445bff08
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Tue Aug 8 09:35:06 2023 +0100
Guess: move hold marker upward by two pixels
This means that it now potentially overlaps the peg above it (part of
the current guess), rather than potentially overlapping the empty hole
below. More importantly, it means that the hold marker is erased by
the erasure of the rest of the peg area, so there's no need to
explicitly draw absent hold markers in the background colour. That in
turn means that absent hold markers don't nibble the tops off all the
pegs at some tile sizes.
Instead of this fix, I could have properly made the hold markers part
of the first row of empty holes, but that would have been rather
fiddly and I've long thought that the hold markers were too far from
the peg that they're holding.
I've also removed part of a comment about the drawing order of hold
markers that seems to have been obsolete even before this commit.
guess.c | 17 +++++++++--------
1 file changed, 9 insertions(+), 8 deletions(-)
More information about the tartarus-commits
mailing list