From: Kaj-Michael Lang Date: Fri, 10 Aug 2007 07:28:34 +0000 (+0300) Subject: Adjust autozoomer. Inform the user of enable/disable. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f56439228044560f43e0e784b5f891d94cdf717c;p=mapper Adjust autozoomer. Inform the user of enable/disable. --- 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