diff options
| author | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2007-03-03 23:17:35 +0000 |
|---|---|---|
| committer | Jacob Nevins <jacobn@chiark.greenend.org.uk> | 2007-03-03 23:17:35 +0000 |
| commit | 8b21ddc396e51aca66a935957f8e62298736443d (patch) | |
| tree | b884520d237af31b88ace7c5d5ba444d6dfd736b | |
| parent | c1b0c1d091399a6e8d8dc3ed20a42b161810182f (diff) | |
| download | puzzles-8b21ddc396e51aca66a935957f8e62298736443d.zip puzzles-8b21ddc396e51aca66a935957f8e62298736443d.tar.gz puzzles-8b21ddc396e51aca66a935957f8e62298736443d.tar.bz2 puzzles-8b21ddc396e51aca66a935957f8e62298736443d.tar.xz | |
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]
| -rw-r--r-- | midend.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -264,6 +264,8 @@ void midend_size(midend *me, int *x, int *y, int expand) */ me->tilesize = min; + if (expand) + me->preferred_tilesize = me->tilesize; midend_size_new_drawstate(me); *x = me->winwidth; *y = me->winheight; |