mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
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:
2
midend.c
2
midend.c
@ -264,6 +264,8 @@ void midend_size(midend *me, int *x, int *y, int expand)
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
me->tilesize = min;
|
me->tilesize = min;
|
||||||
|
if (expand)
|
||||||
|
me->preferred_tilesize = me->tilesize;
|
||||||
midend_size_new_drawstate(me);
|
midend_size_new_drawstate(me);
|
||||||
*x = me->winwidth;
|
*x = me->winwidth;
|
||||||
*y = me->winheight;
|
*y = me->winheight;
|
||||||
|
Reference in New Issue
Block a user