simon-git: puzzles (main): Simon Tatham

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun May 7 21:51:36 BST 2023


TL;DR:
  8237b02 Loopy: fix redraw issue due to enlarged dots.

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:           2023-05-07 21:51:36

commit 8237b02be4e6f92a9e1aebbed23d7b5de0e3543c
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=8237b02be4e6f92a9e1aebbed23d7b5de0e3543c;hp=d0f97926e80482d9cbb3679165a09ca6e695f83f
Author: Simon Tatham <anakin at pobox.com>
Date:   Sun May 7 21:41:50 2023 +0100

    Loopy: fix redraw issue due to enlarged dots.
    
    dot_bbox() wasn't taking into account the new size of the dots, so
    sometimes a rectangle of the grid would be redrawn without a partial
    dot it should have contained, because nothing had noticed that that
    dot overlapped that rectangle.
    
    Actually I'm not sure why this bug wasn't happening _before_ I
    enlarged the dots, because the previous code seemed to think dots had
    a fixed size in pixels regardless of tile size, which wasn't even
    true _before_ my recent commit 4de9836bc8c36cd. Perhaps it did occur,
    just never while I was watching.

 loopy.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)



More information about the tartarus-commits mailing list