aboutsummaryrefslogtreecommitdiff
path: root/range.c
diff options
context:
space:
mode:
Diffstat (limited to 'range.c')
-rw-r--r--range.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/range.c b/range.c
index fc0a540..4106b15 100644
--- a/range.c
+++ b/range.c
@@ -1253,7 +1253,6 @@ typedef struct drawcell {
struct game_drawstate {
int tilesize;
drawcell *grid;
- bool started;
};
#define TILESIZE (ds->tilesize)
@@ -1655,7 +1654,6 @@ static game_drawstate *game_new_drawstate(drawing *dr, const game_state *state)
int i;
ds->tilesize = 0;
- ds->started = false;
ds->grid = snewn(n, drawcell);
for (i = 0; i < n; ++i)
@@ -1690,7 +1688,6 @@ static void game_redraw(drawing *dr, game_drawstate *ds,
float animtime, float flashtime)
{
int const w = state->params.w, h = state->params.h, n = w * h;
- int const wpx = (w+1) * ds->tilesize, hpx = (h+1) * ds->tilesize;
int const flash = ((int) (flashtime * 5 / FLASH_TIME)) % 2;
int r, c, i;
@@ -1701,12 +1698,6 @@ static void game_redraw(drawing *dr, game_drawstate *ds,
assert (oldstate == NULL); /* only happens if animating moves */
- if (!ds->started) {
- ds->started = true;
- draw_rect(dr, 0, 0, wpx, hpx, COL_BACKGROUND);
- draw_update(dr, 0, 0, wpx, hpx);
- }
-
for (i = r = 0; r < h; ++r) {
for (c = 0; c < w; ++c, ++i) {
drawcell cell = makecell(state->grid[i], errors[i], false, flash);