summaryrefslogtreecommitdiff
path: root/board.h
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-27 16:12:46 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2022-05-27 16:14:38 -0700
commita0ca7ab5421d001f50fabbc6c139ded380f597d8 (patch)
tree3d10554311f8644d7fec76f4a2f41d8cc38a6f2f /board.h
parent51447980c54eab163773b80211a73dbfb3636e79 (diff)
downloaddartboat-a0ca7ab5421d001f50fabbc6c139ded380f597d8.tar.gz
dartboat-a0ca7ab5421d001f50fabbc6c139ded380f597d8.tar.xz
web: refactor svg drawing and related code
Diffstat (limited to 'board.h')
-rw-r--r--board.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/board.h b/board.h
index cc60e62..6e06993 100644
--- a/board.h
+++ b/board.h
@@ -25,17 +25,17 @@
// distance from centre to apex of outer wire
// must be ordered outwards from centre
#define FOREACH_RING(M) \
- M(BULL, INNER_DIAMETER_BULL/2 + WIRE_WIDTH/2) \
- M(25, INNER_DIAMETER_25/2 + WIRE_WIDTH/2) \
+ M(BULL, (INNER_DIAMETER_BULL / 2) + (WIRE_WIDTH / 2)) \
+ M(25, (INNER_DIAMETER_25 / 2) + (WIRE_WIDTH / 2)) \
M(SMALL, TREBLE_OUTER_EDGE - WIRE_WIDTH - TREBLE_INSIDE_WIDTH - \
- WIRE_WIDTH/2) \
- M(TREBLE, TREBLE_OUTER_EDGE - WIRE_WIDTH/2) \
+ (WIRE_WIDTH / 2)) \
+ M(TREBLE, TREBLE_OUTER_EDGE - (WIRE_WIDTH / 2)) \
M(BIG, DOUBLE_OUTER_EDGE - WIRE_WIDTH - DOUBLE_INSIDE_WIDTH - \
- WIRE_WIDTH/2) \
- M(DOUBLE, DOUBLE_OUTER_EDGE - WIRE_WIDTH/2)
+ (WIRE_WIDTH / 2)) \
+ M(DOUBLE, DOUBLE_OUTER_EDGE - (WIRE_WIDTH / 2))
#define GEN_RING_ENUM(X, D) R_ ## X,
#define GEN_RING_STR(X, D) #X,
-#define GEN_RING_OUTER_DIST(X, D) D,
+#define GEN_RING_OUTER_DIST(X, D) (D),
extern int SECTORS[];
extern double OUTER_DISTS[];