chiark / gitweb /
New name UI_UPDATE for interpret_move's return "".
[sgt-puzzles.git] / slant.c
diff --git a/slant.c b/slant.c
index 5f9f4f6fedda8030a4de84d00ad7ffa12bb8f583..5980eb2125a02c8776a84af888d1d61e2833b5a7 100644 (file)
--- a/slant.c
+++ b/slant.c
@@ -1683,7 +1683,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
     } else if (IS_CURSOR_SELECT(button)) {
         if (!ui->cur_visible) {
             ui->cur_visible = 1;
-            return "";
+            return UI_UPDATE;
         }
         x = ui->cur_x;
         y = ui->cur_y;
@@ -1692,7 +1692,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
     } else if (IS_CURSOR_MOVE(button)) {
         move_cursor(button, &ui->cur_x, &ui->cur_y, w, h, 0);
         ui->cur_visible = 1;
-        return "";
+        return UI_UPDATE;
     } else if (button == '\\' || button == '\b' || button == '/') {
        int x = ui->cur_x, y = ui->cur_y;
        if (button == ("\\" "\b" "/")[state->soln[y*w + x] + 1]) return NULL;