shithub: puzzles

Download patch

ref: 4cfec3765a8a5c89126bb3ca3d49f5a8680bcfc7
parent: ba2a002c02b9b9463908fc79b61f550fc6b572d5
author: Jacob Nevins <[email protected]>
date: Tue Sep 16 19:51:57 EDT 2008

Cosmetic: fix mismatch between game_compute_size() and game_redraw()
(was causing unwanted "drop-shadow" type effect).

[originally from svn r8186]

--- a/loopy.c
+++ b/loopy.c
@@ -3037,7 +3037,8 @@
         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++) {