aboutsummaryrefslogtreecommitdiff
path: root/map.c
diff options
context:
space:
mode:
Diffstat (limited to 'map.c')
-rw-r--r--map.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/map.c b/map.c
index 412305c..1cd80b6 100644
--- a/map.c
+++ b/map.c
@@ -2872,21 +2872,10 @@ static void game_redraw(drawing *dr, game_drawstate *ds,
ds->drag_visible = false;
}
- /*
- * The initial contents of the window are not guaranteed and
- * can vary with front ends. To be on the safe side, all games
- * should start by drawing a big background-colour rectangle
- * covering the whole window.
- */
if (!ds->started) {
- int ww, wh;
-
- game_compute_size(&state->p, TILESIZE, &ww, &wh);
- draw_rect(dr, 0, 0, ww, wh, COL_BACKGROUND);
draw_rect(dr, COORD(0), COORD(0), w*TILESIZE+1, h*TILESIZE+1,
COL_GRID);
-
- draw_update(dr, 0, 0, ww, wh);
+ draw_update(dr, COORD(0), COORD(0), w*TILESIZE+1, h*TILESIZE+1);
ds->started = true;
}