Bound edge thicknesses below so that they're always thicker than the

grid lines.

[originally from svn r7349]
This commit is contained in:
Simon Tatham
2007-03-01 07:32:35 +00:00
parent 682ea218de
commit cf0b0b747b
2 changed files with 2 additions and 2 deletions

View File

@ -907,7 +907,7 @@ static void game_changed_state(game_ui *ui, game_state *oldstate,
#define PREFERRED_TILE_SIZE 32
#define TILE_SIZE (ds->tilesize)
#define BORDER (TILE_SIZE / 2)
#define BORDER_WIDTH (TILE_SIZE / 32)
#define BORDER_WIDTH (max(TILE_SIZE / 32, 1))
struct game_drawstate {
struct game_params params;