simon-git: puzzles (main): Ben Harris
Commits to Tartarus hosted VCS
tartarus-commits at lists.tartarus.org
Mon Aug 14 17:25:18 BST 2023
TL;DR:
eeec6b8 Untangle: make snapping grid invariant under window resize
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-14 17:25:18
commit eeec6b867af104a93a615a285a29fab91d8709d4
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=eeec6b867af104a93a615a285a29fab91d8709d4;hp=899c7c41efb2bcc8da8121cc7a8f4fccf5eb9b1e
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date: Mon Aug 14 17:13:01 2023 +0100
Untangle: make snapping grid invariant under window resize
In grid-snapping mode, Untangle was still recording vertex positions
in increments of one pixel. This meant that if you positioned
vertices on a small window, then enlarged the window and positioned
more vertices, the two sets of vertices generally wouldn't line up
with one another. This was annoying, and obviously silly when
Untangle has a resolution-independent co-ordinate system. So now the
snapped positions are recorded in a form that doesn't depend on the
tilesize.
untangle.c | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
More information about the tartarus-commits
mailing list