Fix:Core:Change undone
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Sep 2009 11:53:04 +0000 (11:53 +0000)
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 15 Sep 2009 11:53:04 +0000 (11:53 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2569 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/navit.c

index f314841..7bf53a8 100644 (file)
@@ -1491,7 +1491,8 @@ navit_get_cursor_pnt(struct navit *this_, struct point *p, int *dir)
        int width, height;
        struct navit_vehicle *nv=this_->vehicle;
 
-        float offset;               // Cursor offset from the center of the screen (percent).
+        float offset=30;            // Cursor offset from the center of the screen (percent).
+#if 0 /* Better improve track.c to get that issue resolved or make it configurable with being off the default, the jumping back to the center is a bit annoying */
         float min_offset = 0.;      // Percent offset at min_offset_speed.
         float max_offset = 30.;     // Percent offset at max_offset_speed.
         int min_offset_speed = 2;   // Speed in km/h
@@ -1504,6 +1505,7 @@ navit_get_cursor_pnt(struct navit *this_, struct point *p, int *dir)
         } else {
             offset = (max_offset - min_offset) / (max_offset_speed - min_offset_speed) * (nv->speed - min_offset_speed);
         }
+#endif
 
        transform_get_size(this_->trans, &width, &height);
        if (this_->orientation == -1) {