simon-git: puzzles (main): Simon Tatham
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Fri Nov 18 22:26:33 GMT 2022
TL;DR:
f86623b Palisade: scale line thickness unboundedly with tile size.
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: 2022-11-18 22:26:33
commit f86623bbd93e703f1be6432cc221319543a304e6
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=f86623bbd93e703f1be6432cc221319543a304e6;hp=10bd3aeb2ac89a22d5ecfec5942db43e684912ec
Author: Simon Tatham <anakin at pobox.com>
Date: Fri Nov 18 22:19:40 2022 +0000
Palisade: scale line thickness unboundedly with tile size.
The previous expression for WIDTH defined it, curiously, as (1 +
(TILESIZE >= 16) + (TILESIZE >= 32) + (TILESIZE >= 64)) which is
roughly logarithmic in tile size, but bounded above by a maximum of 4
pixels. On high-DPI displays this isn't really good enough any more.
Now I've set the line thickness to a constant fraction of the tile
size (but still bounded below by 1), so it's much easier to see the
lines when the puzzle is expanded to extra large size.
palisade.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
More information about the tartarus-commits
mailing list