diff options
Diffstat (limited to 'apps/plugins/puzzles/src/untangle.c')
-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, | |||
1219 | if(best >= 0) | 1219 | if(best >= 0) |
1220 | { | 1220 | { |
1221 | ui->cursorpoint = best; | 1221 | ui->cursorpoint = best; |
1222 | return ""; | 1222 | return UI_UPDATE; |
1223 | } | 1223 | } |
1224 | } | 1224 | } |
1225 | else if(ui->dragpoint >= 0) | 1225 | else if(ui->dragpoint >= 0) |
@@ -1229,16 +1229,16 @@ static char *interpret_move(const game_state *state, game_ui *ui, | |||
1229 | { | 1229 | { |
1230 | case CURSOR_UP: | 1230 | case CURSOR_UP: |
1231 | ui->newpoint.y -= ds->tilesize / CURSOR_GRANULARITY; | 1231 | ui->newpoint.y -= ds->tilesize / CURSOR_GRANULARITY; |
1232 | return ""; | 1232 | return UI_UPDATE; |
1233 | case CURSOR_DOWN: | 1233 | case CURSOR_DOWN: |
1234 | ui->newpoint.y += ds->tilesize / CURSOR_GRANULARITY; | 1234 | ui->newpoint.y += ds->tilesize / CURSOR_GRANULARITY; |
1235 | return ""; | 1235 | return UI_UPDATE; |
1236 | case CURSOR_LEFT: | 1236 | case CURSOR_LEFT: |
1237 | ui->newpoint.x -= ds->tilesize / CURSOR_GRANULARITY; | 1237 | ui->newpoint.x -= ds->tilesize / CURSOR_GRANULARITY; |
1238 | return ""; | 1238 | return UI_UPDATE; |
1239 | case CURSOR_RIGHT: | 1239 | case CURSOR_RIGHT: |
1240 | ui->newpoint.x += ds->tilesize / CURSOR_GRANULARITY; | 1240 | ui->newpoint.x += ds->tilesize / CURSOR_GRANULARITY; |
1241 | return ""; | 1241 | return UI_UPDATE; |
1242 | default: | 1242 | default: |
1243 | break; | 1243 | break; |
1244 | } | 1244 | } |
@@ -1254,7 +1254,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, | |||
1254 | ui->newpoint.x = state->pts[ui->dragpoint].x * ds->tilesize / state->pts[ui->dragpoint].d; | 1254 | ui->newpoint.x = state->pts[ui->dragpoint].x * ds->tilesize / state->pts[ui->dragpoint].d; |
1255 | ui->newpoint.y = state->pts[ui->dragpoint].y * ds->tilesize / state->pts[ui->dragpoint].d; | 1255 | ui->newpoint.y = state->pts[ui->dragpoint].y * ds->tilesize / state->pts[ui->dragpoint].d; |
1256 | ui->newpoint.d = ds->tilesize; | 1256 | ui->newpoint.d = ds->tilesize; |
1257 | return ""; | 1257 | return UI_UPDATE; |
1258 | } | 1258 | } |
1259 | else if(ui->dragpoint >= 0) | 1259 | else if(ui->dragpoint >= 0) |
1260 | { | 1260 | { |
@@ -1273,7 +1273,7 @@ static char *interpret_move(const game_state *state, game_ui *ui, | |||
1273 | ui->newpoint.x >= (long)state->w*ui->newpoint.d || | 1273 | ui->newpoint.x >= (long)state->w*ui->newpoint.d || |
1274 | ui->newpoint.y < 0 || | 1274 | ui->newpoint.y < 0 || |
1275 | ui->newpoint.y >= (long)state->h*ui->newpoint.d) | 1275 | ui->newpoint.y >= (long)state->h*ui->newpoint.d) |
1276 | return ""; | 1276 | return UI_UPDATE; |
1277 | 1277 | ||
1278 | /* | 1278 | /* |
1279 | * We aren't cancelling the drag. Construct a move string | 1279 | * 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, | |||
1287 | else if(ui->cursorpoint < 0) | 1287 | else if(ui->cursorpoint < 0) |
1288 | { | 1288 | { |
1289 | ui->cursorpoint = 0; | 1289 | ui->cursorpoint = 0; |
1290 | return ""; | 1290 | return UI_UPDATE; |
1291 | } | 1291 | } |
1292 | } | 1292 | } |
1293 | 1293 | ||