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:
ba2a002
)
Cosmetic: fix mismatch between game_compute_size() and game_redraw()
author
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Tue, 16 Sep 2008 23:51:57 +0000
(23:51 +0000)
committer
Jacob Nevins
<jacobn@chiark.greenend.org.uk>
Tue, 16 Sep 2008 23:51:57 +0000
(23:51 +0000)
(was causing unwanted "drop-shadow" type effect).
[originally from svn r8186]
loopy.c
patch
|
blob
|
history
diff --git
a/loopy.c
b/loopy.c
index f5a237b986ee2e7b491d4deb5ed392c162534766..0dabaee3bceadaecde86afaba8912bc48b2a53f3 100644
(file)
--- 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++) {