From f56439228044560f43e0e784b5f891d94cdf717c Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 10 Aug 2007 10:28:34 +0300 Subject: [PATCH] Adjust autozoomer. Inform the user of enable/disable. --- src/map.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/map.c b/src/map.c index 46e097d..2fafe43 100644 --- a/src/map.c +++ b/src/map.c @@ -1321,10 +1321,12 @@ gint iz; if (_zoom_timeout_sid==0) return FALSE; -z=(z+_gps.speed+1)/3; +z=(z+_gps.speed+1)/5; if (z>5) z=5.0; else if (z<1) z=1.0; iz=(gint)roundf(z); +#ifdef DEBUG g_printf("Setting autozoom to: %f %d S:%f\n", z, iz, _gps.speed); +#endif if (iz>last) iz=last+1; else if (iz