aboutsummaryrefslogtreecommitdiff
path: root/loopy.c
diff options
context:
space:
mode:
authorJacob Nevins <jacobn@chiark.greenend.org.uk>2008-09-16 23:51:57 +0000
committerJacob Nevins <jacobn@chiark.greenend.org.uk>2008-09-16 23:51:57 +0000
commit4cfec3765a8a5c89126bb3ca3d49f5a8680bcfc7 (patch)
tree12753b1d38866b717d9f8067bcccb3b8d760a163 /loopy.c
parentba2a002c02b9b9463908fc79b61f550fc6b572d5 (diff)
downloadpuzzles-4cfec3765a8a5c89126bb3ca3d49f5a8680bcfc7.zip
puzzles-4cfec3765a8a5c89126bb3ca3d49f5a8680bcfc7.tar.gz
puzzles-4cfec3765a8a5c89126bb3ca3d49f5a8680bcfc7.tar.bz2
puzzles-4cfec3765a8a5c89126bb3ca3d49f5a8680bcfc7.tar.xz
Cosmetic: fix mismatch between game_compute_size() and game_redraw()
(was causing unwanted "drop-shadow" type effect). [originally from svn r8186]
Diffstat (limited to 'loopy.c')
-rw-r--r--loopy.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/loopy.c b/loopy.c
index f5a237b..0dabaee 100644
--- a/loopy.c
+++ b/loopy.c
@@ -3037,7 +3037,8 @@ static void game_redraw(drawing *dr, game_drawstate *ds, game_state *oldstate,
int grid_height = g->highest_y - g->lowest_y;
int w = grid_width * ds->tilesize / g->tilesize;
int h = grid_height * ds->tilesize / g->tilesize;
- draw_rect(dr, 0, 0, w + 2 * border, h + 2 * border, COL_BACKGROUND);
+ draw_rect(dr, 0, 0, w + 2 * border + 1, h + 2 * border + 1,
+ COL_BACKGROUND);
/* Draw clues */
for (i = 0; i < g->num_faces; i++) {