X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/f04d88ba2c57c09a2e2598558ff1a42a7d86cfde..826e0298fa89ec38199e45ff9202314882dcab23:/unequal.c diff --git a/unequal.c b/unequal.c index f21f579..099f0f8 100644 --- a/unequal.c +++ b/unequal.c @@ -1626,21 +1626,25 @@ static void draw_gts(drawing *dr, game_drawstate *ds, int ox, int oy, /* Draw all the greater-than signs emanating from this tile. */ if (f & F_ADJ_UP) { + draw_rect(dr, ox, oy - g, TILE_SIZE, g, COL_BACKGROUND); draw_gt(dr, ox+g2, oy-g4, g2, -g2, g2, g2, (f & F_ERROR_UP) ? COL_ERROR : col); draw_update(dr, ox, oy-g, TILE_SIZE, g); } if (f & F_ADJ_RIGHT) { + draw_rect(dr, ox + TILE_SIZE, oy, g, TILE_SIZE, COL_BACKGROUND); draw_gt(dr, ox+TILE_SIZE+g4, oy+g2, g2, g2, -g2, g2, (f & F_ERROR_RIGHT) ? COL_ERROR : col); draw_update(dr, ox+TILE_SIZE, oy, g, TILE_SIZE); } if (f & F_ADJ_DOWN) { + draw_rect(dr, ox, oy + TILE_SIZE, TILE_SIZE, g, COL_BACKGROUND); draw_gt(dr, ox+g2, oy+TILE_SIZE+g4, g2, g2, g2, -g2, (f & F_ERROR_DOWN) ? COL_ERROR : col); draw_update(dr, ox, oy+TILE_SIZE, TILE_SIZE, g); } if (f & F_ADJ_LEFT) { + draw_rect(dr, ox - g, oy, g, TILE_SIZE, COL_BACKGROUND); draw_gt(dr, ox-g4, oy+g2, -g2, g2, g2, g2, (f & F_ERROR_LEFT) ? COL_ERROR : col); draw_update(dr, ox-g, oy, g, TILE_SIZE); @@ -1860,6 +1864,11 @@ static float game_flash_length(game_state *oldstate, game_state *newstate, return 0.0F; } +static int game_is_solved(game_state *state) +{ + return state->completed; +} + static int game_timing_state(game_state *state, game_ui *ui) { return TRUE; @@ -1948,6 +1957,7 @@ const struct game thegame = { game_redraw, game_anim_length, game_flash_length, + game_is_solved, TRUE, FALSE, game_print_size, game_print, FALSE, /* wants_statusbar */ FALSE, game_timing_state,