aboutsummaryrefslogtreecommitdiff
path: root/net.c
diff options
context:
space:
mode:
Diffstat (limited to 'net.c')
-rw-r--r--net.c19
1 files changed, 0 insertions, 19 deletions
diff --git a/net.c b/net.c
index 5796e95..140494e 100644
--- a/net.c
+++ b/net.c
@@ -2054,7 +2054,6 @@ static void game_changed_state(game_ui *ui, const game_state *oldstate,
}
struct game_drawstate {
- bool started;
int width, height;
int tilesize;
unsigned long *visible, *to_draw;
@@ -2441,7 +2440,6 @@ static game_drawstate *game_new_drawstate(drawing *dr, const game_state *state)
game_drawstate *ds = snew(game_drawstate);
int i, ncells;
- ds->started = false;
ds->width = state->width;
ds->height = state->height;
ncells = (state->width+2) * (state->height+2);
@@ -2838,23 +2836,6 @@ static void game_redraw(drawing *dr, game_drawstate *ds,
int *loops;
float angle = 0.0;
- /*
- * Clear the screen on our first call.
- */
- if (!ds->started) {
- int w, h;
- game_params params;
-
- ds->started = true;
-
- params.width = ds->width;
- params.height = ds->height;
- game_compute_size(&params, TILE_SIZE, &w, &h);
-
- draw_rect(dr, 0, 0, w, h, COL_BACKGROUND);
- draw_update(dr, 0, 0, w, h);
- }
-
tx = ty = -1;
last_rotate_dir = dir==-1 ? oldstate->last_rotate_dir :
state->last_rotate_dir;