mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
flip: Set a lower bound on the size of little diagrams
This ensures that they don't vanish entirely and small tile sizes.
This commit is contained in:
2
flip.c
2
flip.c
@ -1159,7 +1159,7 @@ static void draw_tile(drawing *dr, game_drawstate *ds, const game_state *state,
|
||||
for (j = 0; j < w; j++)
|
||||
if (state->matrix->matrix[(y*w+x)*wh + i*w+j]) {
|
||||
int ox = j - x, oy = i - y;
|
||||
int td = TILE_SIZE / 16;
|
||||
int td = TILE_SIZE / 16 ? TILE_SIZE / 16 : 1;
|
||||
int cx = (bx + TILE_SIZE/2) + (2 * ox - 1) * td;
|
||||
int cy = (by + TILE_SIZE/2) + (2 * oy - 1) * td;
|
||||
if (ox == 0 && oy == 0)
|
||||
|
Reference in New Issue
Block a user