X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/3e17893b1f77346f1e2460968f54b1d1468ef81f..826e0298fa89ec38199e45ff9202314882dcab23:/netslide.c diff --git a/netslide.c b/netslide.c index 99eb6e1..436b786 100644 --- a/netslide.c +++ b/netslide.c @@ -1307,8 +1307,8 @@ static float *game_colours(frontend *fe, int *ncolours) return ret; } -static void draw_thick_line(drawing *dr, int x1, int y1, int x2, int y2, - int colour) +static void draw_filled_line(drawing *dr, int x1, int y1, int x2, int y2, + int colour) { draw_line(dr, x1-1, y1, x2-1, y2, COL_WIRE); draw_line(dr, x1+1, y1, x2+1, y2, COL_WIRE); @@ -1420,9 +1420,9 @@ static void draw_tile(drawing *dr, game_drawstate *ds, game_state *state, if (tile & dir) { ex = (TILE_SIZE - TILE_BORDER - 1.0F) / 2.0F * X(dir); ey = (TILE_SIZE - TILE_BORDER - 1.0F) / 2.0F * Y(dir); - draw_thick_line(dr, bx+(int)cx, by+(int)cy, - bx+(int)(cx+ex), by+(int)(cy+ey), - COL_WIRE); + draw_filled_line(dr, bx+(int)cx, by+(int)cy, + bx+(int)(cx+ex), by+(int)(cy+ey), + COL_WIRE); } } for (dir = 1; dir < 0x10; dir <<= 1) { @@ -1829,6 +1829,11 @@ static float game_flash_length(game_state *oldstate, 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 FALSE; @@ -1877,6 +1882,7 @@ const struct game thegame = { game_redraw, game_anim_length, game_flash_length, + game_is_solved, FALSE, FALSE, game_print_size, game_print, TRUE, /* wants_statusbar */ FALSE, game_timing_state,