diff options
| author | Franklin Wei <me@fwei.tk> | 2017-08-17 15:26:41 -0400 |
|---|---|---|
| committer | Franklin Wei <franklin@rockbox.org> | 2020-12-07 19:27:19 -0500 |
| commit | b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20 (patch) | |
| tree | 72519f4b8d0587ed44e88695745334ac0930613d | |
| parent | b4efc0d44810c85a5cec50c8457bc1ab0aedc49c (diff) | |
| download | puzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.zip puzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.tar.gz puzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.tar.bz2 puzzles-b4b86bbdbeb99c9fd9cfa6b61454047eb5e8fe20.tar.xz | |
Untangle: change cursor-only behavior
| -rw-r--r-- | untangle.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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. |