simon-git: puzzles (main): Ben Harris

Commits to Tartarus hosted VCS tartarus-commits at lists.tartarus.org
Mon Aug 14 01:49:32 BST 2023


TL;DR:
  3c6493e Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Flood
  462a545 Flood: correctly handle clicks that only hide cursor

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 01:49:32

commit 3c6493e7b363400479fc163970acd930b0f5db59
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=3c6493e7b363400479fc163970acd930b0f5db59;hp=a409cfe16978d8e98a3754c6053cd00b09d32b26
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Mon Aug 14 01:46:20 2023 +0100

    Distinguish MOVE_UNUSED from MOVE_NO_EFFECT in Flood
    
    Clicking outside the grid hides the keyboard cursor, so it's not
    MOVE_UNUSED like it usually is.

 flood.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

commit 462a5450c6bd7d96a6051b37ceef1fd63426ddf8
web diff https://git.tartarus.org/?p=simon/puzzles.git;a=commitdiff;h=462a5450c6bd7d96a6051b37ceef1fd63426ddf8;hp=3c6493e7b363400479fc163970acd930b0f5db59
Author: Ben Harris <bjh21 at bjh21.me.uk>
Date:   Mon Aug 14 01:49:24 2023 +0100

    Flood: correctly handle clicks that only hide cursor
    
    If you clicked somewhere that had no effect (outside the grid or on a
    square matching the colour of the top-left corner), interpret_move()
    would return MOVE_NO_EFFECT (previously NULL) even though it had unset
    ui->cursor.  So the keyboard cursor would remain visible until the
    next window resize (or similar) when it would vanish.  Now
    interpret_move() correctly returns MOVE_UI_UPDATE in these cases, so
    the cursor vanishes immediately.

 flood.c | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)



More information about the tartarus-commits mailing list