mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Two small fixes: add some ceil() calls to stop the puzzle shrinking
every time I press N, and revert the help topic to NULL until some documentation materialises. [originally from svn r5993]
This commit is contained in:
7
guess.c
7
guess.c
@ -639,9 +639,8 @@ static void game_size(game_params *params, game_drawstate *ds,
|
|||||||
ds->pegrad = (ds->pegsz -1)/2; /* radius of peg to fit in pegsz (which is 2r+1) */
|
ds->pegrad = (ds->pegsz -1)/2; /* radius of peg to fit in pegsz (which is 2r+1) */
|
||||||
ds->hintrad = (ds->hintsz-1)/2;
|
ds->hintrad = (ds->hintsz-1)/2;
|
||||||
|
|
||||||
*x = (int)((double)ds->pegsz * hmul);
|
*x = (int)ceil((double)ds->pegsz * hmul);
|
||||||
*y = (int)((double)ds->pegsz * vmul);
|
*y = (int)ceil((double)ds->pegsz * vmul);
|
||||||
|
|
||||||
ds->w = *x; ds->h = *y;
|
ds->w = *x; ds->h = *y;
|
||||||
|
|
||||||
colh = ((ds->pegsz + ds->gapsz) * params->ncolours) - ds->gapsz;
|
colh = ((ds->pegsz + ds->gapsz) * params->ncolours) - ds->gapsz;
|
||||||
@ -1043,7 +1042,7 @@ static int game_timing_state(game_state *state)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
const struct game thegame = {
|
const struct game thegame = {
|
||||||
"Guess", "games.guess",
|
"Guess", NULL,
|
||||||
default_params,
|
default_params,
|
||||||
game_fetch_preset,
|
game_fetch_preset,
|
||||||
decode_params,
|
decode_params,
|
||||||
|
Reference in New Issue
Block a user