X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/blobdiff_plain/0968d748f157ecce4155b255ff98fa909c325bd9..c5e949657127f3c752cdc693cb71636711d9ecb1:/filling.c diff --git a/filling.c b/filling.c index b9dff73..f47f9f1 100644 --- a/filling.c +++ b/filling.c @@ -1389,7 +1389,8 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate, * should start by drawing a big background-colour rectangle * covering the whole window. */ - draw_rect(dr, 0, 0, 10*ds->tilesize, 10*ds->tilesize, COL_BACKGROUND); + draw_rect(dr, 0, 0, w*TILE_SIZE + 2*BORDER, h*TILE_SIZE + 2*BORDER, + COL_BACKGROUND); /* * Smaller black rectangle which is the main grid. @@ -1399,6 +1400,8 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate, h*TILE_SIZE + 2*BORDER_WIDTH + 1, COL_GRID); + draw_update(dr, 0, 0, w*TILE_SIZE + 2*BORDER, h*TILE_SIZE + 2*BORDER); + ds->started = TRUE; }