shithub: puzzles

Download patch

ref: a0c7156fc8547fd0d6591413dea01462d003b847
parent: 2aa5708bc725cb48a0d6629dc97bad2fd8cad414
author: Ben Harris <bjh21@bjh21.me.uk>
date: Thu Aug 10 20:44:49 EDT 2023

Signpost: use new move_cursor() features

--- a/signpost.c
+++ b/signpost.c
@@ -1511,13 +1511,14 @@
     char buf[80];
 
     if (IS_CURSOR_MOVE(button)) {
-        move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, false, NULL);
-        ui->cshow = true;
+        char *ret;
+        ret = move_cursor(button, &ui->cx, &ui->cy, state->w, state->h, false,
+                          &ui->cshow);
         if (ui->dragging) {
             ui->dx = COORD(ui->cx) + TILE_SIZE/2;
             ui->dy = COORD(ui->cy) + TILE_SIZE/2;
         }
-        return MOVE_UI_UPDATE;
+        return ret;
     } else if (IS_CURSOR_SELECT(button)) {
         if (!ui->cshow)
             ui->cshow = true;