chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3940c22
)
Fix some border drawing issues.
author
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Wed, 28 Feb 2007 22:22:30 +0000
(22:22 +0000)
committer
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Wed, 28 Feb 2007 22:22:30 +0000
(22:22 +0000)
[originally from svn r7347]
filling.c
patch
|
blob
|
history
diff --git
a/filling.c
b/filling.c
index b9dff73099624c070377b14b03c896ce0c0769c3..f47f9f17473e0e70e167b6bb1f8bdd89275e0601 100644
(file)
--- 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;
}