mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 16:05:44 -07:00
Loopy: widen clip rectangle for redrawing clues.
The new Hats tiling generates a lot of clues that are 2-digit numbers. At large puzzle sizes, the previous clip rectangle didn't quite include the ends of such a number, meaning that if the number had to be redrawn in red to highlight an error, the leftmost and rightmost parts of the text would remain black.
This commit is contained in:
4
loopy.c
4
loopy.c
@ -3202,9 +3202,9 @@ static void face_text_bbox(game_drawstate *ds, grid *g, grid_face *f,
|
|||||||
/* There seems to be a certain amount of trial-and-error involved
|
/* There seems to be a certain amount of trial-and-error involved
|
||||||
* in working out the correct bounding-box for the text. */
|
* in working out the correct bounding-box for the text. */
|
||||||
|
|
||||||
*x = xx - ds->tilesize/4 - 1;
|
*x = xx - ds->tilesize * 5 / 4 - 1;
|
||||||
*y = yy - ds->tilesize/4 - 3;
|
*y = yy - ds->tilesize/4 - 3;
|
||||||
*w = ds->tilesize/2 + 2;
|
*w = ds->tilesize * 5 / 2 + 2;
|
||||||
*h = ds->tilesize/2 + 5;
|
*h = ds->tilesize/2 + 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user