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]
This commit is contained in:
Jacob Nevins
2007-03-03 23:17:35 +00:00
parent c1b0c1d091
commit 8b21ddc396

View File

@ -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;