diff options
author | Franklin Wei <git@fwei.tk> | 2017-10-24 19:33:56 -0400 |
---|---|---|
committer | Franklin Wei <git@fwei.tk> | 2017-10-24 19:36:19 -0400 |
commit | 3ad9caeb2a8443b5975fb91c83d2793166a4e4f6 (patch) | |
tree | ffa6ad1986f0558f14f246f57bc2f1c4062bc22e | |
parent | 819d3ee02e870167f565b44671e949a9b08b5c10 (diff) | |
download | rockbox-3ad9cae.tar.gz rockbox-3ad9cae.tar.bz2 rockbox-3ad9cae.zip |
puzzles: make Untangle's input code return UI_UPDATE instead of ""
This was changed upstream and slipped by when I was merging the
changes.
Change-Id: I3a53cd2db5a5cd2ffef52719a048b8ff4c80d1aa
-rw-r--r-- | apps/plugins/puzzles/src/untangle.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/plugins/puzzles/src/untangle.c b/apps/plugins/puzzles/src/untangle.c index 6c2eb30deb..09c36fe58b 100644 --- a/apps/plugins/puzzles/src/untangle.c +++ b/apps/plugins/puzzles/src/untangle.c @@ -1219,7 +1219,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, if(best >= 0) { ui->cursorpoint = best; - return ""; + return UI_UPDATE; } } else if(ui->dragpoint >= 0) @@ -1229,16 +1229,16 @@ static char *interpret_move(const game_state *state, game_ui *ui, { case CURSOR_UP: ui->newpoint.y -= ds->tilesize / CURSOR_GRANULARITY; - return ""; + return UI_UPDATE; case CURSOR_DOWN: ui->newpoint.y += ds->tilesize / CURSOR_GRANULARITY; - return ""; + return UI_UPDATE; case CURSOR_LEFT: ui->newpoint.x -= ds->tilesize / CURSOR_GRANULARITY; - return ""; + return UI_UPDATE; case CURSOR_RIGHT: ui->newpoint.x += ds->tilesize / CURSOR_GRANULARITY; - return ""; + return UI_UPDATE; default: break; } @@ -1254,7 +1254,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, ui->newpoint.x = state->pts[ui->dragpoint].x * ds->tilesize / state->pts[ui->dragpoint].d; ui->newpoint.y = state->pts[ui->dragpoint].y * ds->tilesize / state->pts[ui->dragpoint].d; ui->newpoint.d = ds->tilesize; - return ""; + return UI_UPDATE; } else if(ui->dragpoint >= 0) { @@ -1273,7 +1273,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, ui->newpoint.x >= (long)state->w*ui->newpoint.d || ui->newpoint.y < 0 || ui->newpoint.y >= (long)state->h*ui->newpoint.d) - return ""; + return UI_UPDATE; /* * We aren't cancelling the drag. Construct a move string @@ -1287,7 +1287,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, else if(ui->cursorpoint < 0) { ui->cursorpoint = 0; - return ""; + return UI_UPDATE; } } |