From d01aae080e4941d8adcd4bd64cd29327278ffbef Mon Sep 17 00:00:00 2001 From: Paul Dicker Date: Mon, 7 Apr 2025 21:31:55 +0200 Subject: [PATCH] Use finer curve grid for fast media (with a small x factor) --- src/curve.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/curve.c b/src/curve.c index 4703ef2..614d954 100644 --- a/src/curve.c +++ b/src/curve.c @@ -228,8 +228,10 @@ void GuiRedrawAxes(cairo_t *cr, Curve *curve) /* Draw and label the grid lines for the normal curve */ - if(curve->maxY < 20) step = 4; - else step = 10; + if(curve->maxY > 20) step = 10; + else if(curve->maxY > 10) step = 4; + else if(curve->maxY > 4) step = 2; + else step = 1; for(i=0; i<=curve->maxY; i+=step) { char buf[4];