From e6c241add375353c1c80b0e3915a6505dbd5db9a Mon Sep 17 00:00:00 2001 From: Leonard Kugis Date: Tue, 23 Jan 2018 01:23:23 +0100 Subject: Added zoom speed option --- src/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/render.c') diff --git a/src/render.c b/src/render.c index 27573cf..55d514b 100644 --- a/src/render.c +++ b/src/render.c @@ -120,7 +120,7 @@ void gl_idle(void) int t = glutGet(GLUT_ELAPSED_TIME); dt = (t - delta) / 1000.0; delta = t; - ft+=(0.1*dt); + ft+=(_config->speed*dt); x_min = x_min_s + zoom_func(ft, (long double)2.0 + _config->to_x); y_min = y_min_s + zoom_func(ft, (long double)1.0 + _config->to_y); x_max = x_max_s - zoom_func(ft, (long double)1.0 - _config->to_x); -- cgit v1.2.1