aboutsummaryrefslogtreecommitdiff
path: root/html/net.html
diff options
context:
space:
mode:
authorBen Harris <bjh21@bjh21.me.uk>2022-12-08 13:24:36 +0000
committerBen Harris <bjh21@bjh21.me.uk>2022-12-08 13:42:31 +0000
commit1d91522babe41fcf7cbfb06633ae6bc5606db367 (patch)
tree77bbec38e0c7f28c2145176beaf9a1de6330b481 /html/net.html
parent0d36b471d831535e778016dd64ded00900ee6af2 (diff)
downloadpuzzles-1d91522babe41fcf7cbfb06633ae6bc5606db367.zip
puzzles-1d91522babe41fcf7cbfb06633ae6bc5606db367.tar.gz
puzzles-1d91522babe41fcf7cbfb06633ae6bc5606db367.tar.bz2
puzzles-1d91522babe41fcf7cbfb06633ae6bc5606db367.tar.xz
tracks: Allow a smaller or non-existent border at small tile sizes
The basic tile size in Tracks is required to be a multiple of 6, which means that for small tile sizes the steps are rather large. With the standard border widths, this means that the default 8-by-8 puzzle can be 246 pixels wide (tilesize == 24) or 184 pixels wide (tilesize == 18). This is particularly annoying if you happen to have a 240-pixel-wide screen. This commit allows the puzzle to reduce or remove the borders at small tile sizes, on the grounds that a slightly narrower border is acceptable if it avoids needing to use a smaller tile size. It encodes the border width in (tilesize % 6), and is thus enabled when the default border width is 5 or less. Above that size (which is a tilesize of 48), I assume the steps in tile size aren't big enough to be a serious problem.
Diffstat (limited to 'html/net.html')
0 files changed, 0 insertions, 0 deletions