aboutsummaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
authorLeonard Kugis <leonardkugis@gmail.com>2018-01-23 01:23:23 +0100
committerLeonard Kugis <leonardkugis@gmail.com>2018-01-23 01:23:23 +0100
commite6c241add375353c1c80b0e3915a6505dbd5db9a (patch)
treed4d840b0aadc075c007fbbeefcb5b18edb52541d /src/render.c
parentf88292eafad9c6443f970ae0b28fa9cd2ae8fb7d (diff)
Added zoom speed option
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c2
1 files changed, 1 insertions, 1 deletions
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);