shithub: puzzles

Download patch

ref: 8b21ddc396e51aca66a935957f8e62298736443d
parent: c1b0c1d091399a6e8d8dc3ed20a42b161810182f
author: Jacob Nevins <jacobn@chiark.greenend.org.uk>
date: Sat Mar 3 18:17:35 EST 2007

Patch from Ben Hutchings to allow user-initiated tilesize changes to persist
across changes in game parameters (e.g., changing difficulty without changing
size). This also has the effect of preserving the user-selected tilesize if the
grid size is changed. (From Debian bug#379452.)

[originally from svn r7368]

--- a/midend.c
+++ b/midend.c
@@ -264,6 +264,8 @@
      */
 
     me->tilesize = min;
+    if (expand)
+        me->preferred_tilesize = me->tilesize;
     midend_size_new_drawstate(me);
     *x = me->winwidth;
     *y = me->winheight;