~mdw
/
sgt
/
puzzles
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Bound edge thicknesses below so that they're always thicker than the
[sgt/puzzles]
/
galaxies.c
diff --git
a/galaxies.c
b/galaxies.c
index
6989fe3
..
bfb558d
100644
(file)
--- a/
galaxies.c
+++ b/
galaxies.c
@@
-2075,7
+2075,7
@@
static void game_changed_state(game_ui *ui, game_state *oldstate,
#define PREFERRED_TILE_SIZE 32
#define TILE_SIZE (ds->tilesize)
#define DOT_SIZE (TILE_SIZE / 4)
#define PREFERRED_TILE_SIZE 32
#define TILE_SIZE (ds->tilesize)
#define DOT_SIZE (TILE_SIZE / 4)
-#define EDGE_THICKNESS (
TILE_SIZE / 16
)
+#define EDGE_THICKNESS (
max(TILE_SIZE / 16, 2)
)
#define BORDER TILE_SIZE
#define COORD(x) ( (x) * TILE_SIZE + BORDER )
#define BORDER TILE_SIZE
#define COORD(x) ( (x) * TILE_SIZE + BORDER )