commit 554bb5f53db059a1bc873a2394237f3f1549d1be parent 5365016db30e057ec0db296d7252979598f80557 Author: Matthew Fry <gunslingerfry@gmail.com> Date: Mon, 9 Oct 2017 09:18:16 -0600 Fixed the calculations for BUTTON_CENTER and BUTTON_SPACE. Diffstat:
| M | unlock_indicator.c | | | 4 | ++-- |
1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unlock_indicator.c b/unlock_indicator.c @@ -30,8 +30,8 @@ extern double ring_width; #define BUTTON_RADIUS (circle_radius) #define RING_WIDTH (ring_width) -#define BUTTON_SPACE (BUTTON_RADIUS + RING_WIDTH) -#define BUTTON_CENTER (BUTTON_RADIUS + RING_WIDTH) +#define BUTTON_SPACE (BUTTON_RADIUS + (RING_WIDTH / 2)) +#define BUTTON_CENTER (BUTTON_RADIUS + (RING_WIDTH / 2)) #define BUTTON_DIAMETER (2 * BUTTON_SPACE) #define CLOCK_WIDTH 400 #define CLOCK_HEIGHT 200
