simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Sun Jul 30 17:19:35 BST 2023


TL;DR:
  29eaa8f Flood: don't draw zero-width tile separators

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-07-30 17:19:35

commit 29eaa8f55c7b9cc960afa4327a7ce977e6637e9c
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=29eaa8f55c7b9cc960afa4327a7ce977e6637e9c;hp=58511aa009c672cc2ade783d537a5830806fd02c
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Sun Jul 30 17:16:36 2023 +0100

    Flood: don't draw zero-width tile separators
    
    Flood's draw_tile() extravagantly uses up to eight rectangles to draw
    separators around each tile.  This could be substantially improved,
    but a particularly low-hanging optimisation is not do draw them when
    the separator width is zero.
    
    This at least means that Flood completes its initial drawing on my
    test KaiOS device.

 flood.c | 52 +++++++++++++++++++++++++++-------------------------
 1 file changed, 27 insertions(+), 25 deletions(-)



More information about the tartarus-commits mailing list