aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranklin Wei <me@fwei.tk>2017-08-17 15:26:41 -0400
committerFranklin Wei <franklin@rockbox.org>2020-12-07 19:27:19 -0500
commitb4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20 (patch)
tree72519f4b8d0587ed44e88695745334ac0930613d
parentb4efc0d44810c85a5cec50c8457bc1ab0aedc49c (diff)
downloadpuzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.zip
puzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.tar.gz
puzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.tar.bz2
puzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.tar.xz
Untangle: change cursor-only behavior
-rw-r--r--untangle.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/untangle.c b/untangle.c
index 5eb8590..48109bb 100644
--- a/untangle.c
+++ b/untangle.c
@@ -1119,6 +1119,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
if (bestd <= DRAG_THRESHOLD * DRAG_THRESHOLD) {
ui->dragpoint = best;
+ ui->cursorpoint = -1;
ui->newpoint.x = x;
ui->newpoint.y = y;
ui->newpoint.d = ds->tilesize;
@@ -1135,8 +1136,7 @@ static char *interpret_move(const game_state *state, game_ui *ui,
char buf[80];
ui->dragpoint = -1; /* terminate drag, no matter what */
- ui->cursorpoint = -1; /* also eliminate the cursor point */
-
+
/*
* First, see if we're within range. The user can cancel a
* drag by dragging the point right off the window.