ATTR(through_traffic_flags)
ATTR(speed_exceed_limit_offset)
ATTR(speed_exceed_limit_percent)
+ATTR(map_border)
ATTR2(0x00027500,type_rel_abs_begin)
/* These attributes are int that can either hold relative *
* or absolute values. A relative value is indicated by *
int flags;
/* 1=No graphics ok */
/* 2=No gui ok */
+ int border;
};
struct gui *main_loop_gui;
this_->zoom_max = 2097152;
this_->follow_cursor = 1;
this_->radius = 30;
+ this_->border = 16;
this_->trans = transform_new();
transform_from_geo(pro, &g, &co);
l=g_list_next(l);
}
return 0;
+ case attr_map_border:
+ if (this_->border != attr->u.num) {
+ this_->border=attr->u.num;
+ attr_updated=1;
+ }
+ break;
case attr_orientation:
orient_old=this_->orientation;
this_->orientation=attr->u.num;
struct tracking *tracking=NULL;
struct pcoord pc[16];
enum projection pro=transform_get_projection(this_->trans);
- int count,border=16;
+ int count;
int (*get_attr)(void *, enum attr_type, struct attr *, struct attr_iter *);
void *attr_object;
char *destination_file;
transform(this_->trans, pro, &nv->coord, &cursor_pnt, 1, 0, 0, NULL);
if (this_->button_pressed != 1 && this_->follow_cursor && nv->follow_curr <= nv->follow &&
- (nv->follow_curr == 1 || !transform_within_border(this_->trans, &cursor_pnt, border)))
+ (nv->follow_curr == 1 || !transform_within_border(this_->trans, &cursor_pnt, this_->border)))
navit_set_center_cursor_draw(this_);
else
navit_vehicle_draw(this_, nv, pnt);
nv->last.y = 0;
nv->animate_cursor=0;
if ((vehicle_get_attr(v, attr_follow, &follow, NULL)))
- nv->follow=nv->follow=follow.u.num;
+ nv->follow=follow.u.num;
nv->follow_curr=nv->follow;
this_->vehicles=g_list_append(this_->vehicles, nv);
if ((vehicle_get_attr(v, attr_active, &active, NULL)) && active.u.num)