aboutsummaryrefslogtreecommitdiff
path: root/filling.c
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2007-02-28 22:22:30 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2007-02-28 22:22:30 +0000
commit682ea218de892122615f8aff7338306198fe56f4 (patch)
treeb9262f701a7fb09f3fc77e50f7445742dcb4a365 /filling.c
parent3940c22d49f37001f8c1b60d4b9fd37aa4a98f0a (diff)
downloadpuzzles-682ea218de892122615f8aff7338306198fe56f4.zip
puzzles-682ea218de892122615f8aff7338306198fe56f4.tar.gz
puzzles-682ea218de892122615f8aff7338306198fe56f4.tar.bz2
puzzles-682ea218de892122615f8aff7338306198fe56f4.tar.xz
Fix some border drawing issues.
[originally from svn r7347]
Diffstat (limited to 'filling.c')
-rw-r--r--filling.c5
1 files changed, 4 insertions, 1 deletions
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;
}