diff options
Diffstat (limited to 'slant.c')
| -rw-r--r-- | slant.c | 10 |
1 files changed, 0 insertions, 10 deletions
@@ -1638,7 +1638,6 @@ static void game_changed_state(game_ui *ui, const game_state *oldstate, struct game_drawstate { int tilesize; - bool started; long *grid; long *todraw; }; @@ -1832,7 +1831,6 @@ static game_drawstate *game_new_drawstate(drawing *dr, const game_state *state) struct game_drawstate *ds = snew(struct game_drawstate); ds->tilesize = 0; - ds->started = false; ds->grid = snewn((w+2)*(h+2), long); ds->todraw = snewn((w+2)*(h+2), long); for (i = 0; i < (w+2)*(h+2); i++) @@ -1972,14 +1970,6 @@ static void game_redraw(drawing *dr, game_drawstate *ds, else flashing = false; - if (!ds->started) { - int ww, wh; - game_compute_size(&state->p, TILESIZE, &ww, &wh); - draw_rect(dr, 0, 0, ww, wh, COL_BACKGROUND); - draw_update(dr, 0, 0, ww, wh); - ds->started = true; - } - /* * Loop over the grid and work out where all the slashes are. * We need to do this because a slash in one square affects the |