diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-06-23 12:21:14 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-06-23 12:21:14 +0000 |
| commit | d781db11dd7cc3fd6b059bec4657297e5b6b0ae4 (patch) | |
| tree | 258f4a477b7910ee5976ddc041cb001ccba0d6bf | |
| parent | f862a227beeed5476d09cd67573996258bca5d19 (diff) | |
| download | puzzles-d781db11dd7cc3fd6b059bec4657297e5b6b0ae4.zip puzzles-d781db11dd7cc3fd6b059bec4657297e5b6b0ae4.tar.gz puzzles-d781db11dd7cc3fd6b059bec4657297e5b6b0ae4.tar.bz2 puzzles-d781db11dd7cc3fd6b059bec4657297e5b6b0ae4.tar.xz | |
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]
| -rw-r--r-- | guess.c | 7 |
1 files changed, 3 insertions, 4 deletions
@@ -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->hintrad = (ds->hintsz-1)/2; - *x = (int)((double)ds->pegsz * hmul); - *y = (int)((double)ds->pegsz * vmul); - + *x = (int)ceil((double)ds->pegsz * hmul); + *y = (int)ceil((double)ds->pegsz * vmul); ds->w = *x; ds->h = *y; colh = ((ds->pegsz + ds->gapsz) * params->ncolours) - ds->gapsz; @@ -1043,7 +1042,7 @@ static int game_timing_state(game_state *state) #endif const struct game thegame = { - "Guess", "games.guess", + "Guess", NULL, default_params, game_fetch_preset, decode_params, |