From 554bb5f53db059a1bc873a2394237f3f1549d1be Mon Sep 17 00:00:00 2001 From: Matthew Fry Date: Mon, 9 Oct 2017 09:18:16 -0600 Subject: [PATCH] Fixed the calculations for BUTTON_CENTER and BUTTON_SPACE. --- unlock_indicator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/unlock_indicator.c b/unlock_indicator.c index 12ac2c6..217a8a3 100644 --- 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