From 08a2f6972d210379d10e4933ae3808316ffec47b Mon Sep 17 00:00:00 2001 From: TT Date: Wed, 23 Oct 2019 08:07:20 +0900 Subject: [PATCH] feat: fasten drawing by inlining circle_inout --- plot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plot.c b/plot.c index 3a83fcc..74fbaf8 100644 --- a/plot.c +++ b/plot.c @@ -91,7 +91,7 @@ void update_grid(void) redraw_request |= REDRAW_FREQUENCY; } -int +static inline int circle_inout(int x, int y, int r) { int d = x*x + y*y - r*r;