diff options
author | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-23 01:23:23 +0100 |
---|---|---|
committer | Leonard Kugis <leonardkugis@gmail.com> | 2018-01-23 01:23:23 +0100 |
commit | e6c241add375353c1c80b0e3915a6505dbd5db9a (patch) | |
tree | d4d840b0aadc075c007fbbeefcb5b18edb52541d /src/render.c | |
parent | f88292eafad9c6443f970ae0b28fa9cd2ae8fb7d (diff) |
Added zoom speed option
Diffstat (limited to 'src/render.c')
-rw-r--r-- | src/render.c | 2 |
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); |