Make the keyboard-control cursors visible whenever a keyboard control is
authorjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 25 Jun 2005 13:43:45 +0000 (13:43 +0000)
committerjacob <jacob@cda61777-01e9-0310-a592-d414129be87e>
Sat, 25 Jun 2005 13:43:45 +0000 (13:43 +0000)
activated.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6013 cda61777-01e9-0310-a592-d414129be87e

guess.c

diff --git a/guess.c b/guess.c
index 24daab3..702a1ad 100644 (file)
--- a/guess.c
+++ b/guess.c
@@ -700,6 +700,7 @@ static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds,
         ret = from;
     } else if (button == CURSOR_SELECT || button == ' ' || button == '\r' ||
                button == '\n') {
+        ui->display_cur = 1;
         if (ui->peg_cur == from->params.npegs) {
             ret = mark_move(from, ui);
         } else {
@@ -707,6 +708,7 @@ static game_state *make_move(game_state *from, game_ui *ui, game_drawstate *ds,
             ret = from;
         }
     } else if (button == 'H' || button == 'h') {
+        ui->display_cur = 1;
         ui->holds[ui->peg_cur] = 1 - ui->holds[ui->peg_cur];
         ret = from;
     }