summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
7447638)
every time I press N, and revert the help topic to NULL until some
documentation materialises.
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@5993
cda61777-01e9-0310-a592-
d414129be87e
ds->pegrad = (ds->pegsz -1)/2; /* radius of peg to fit in pegsz (which is 2r+1) */
ds->hintrad = (ds->hintsz-1)/2;
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;
ds->w = *x; ds->h = *y;
colh = ((ds->pegsz + ds->gapsz) * params->ncolours) - ds->gapsz;
#endif
const struct game thegame = {
#endif
const struct game thegame = {
- "Guess", "games.guess",
default_params,
game_fetch_preset,
decode_params,
default_params,
game_fetch_preset,
decode_params,