424 |
float dist = gpx_pos_get_distance(pos, nearest->pos, FALSE); |
float dist = gpx_pos_get_distance(pos, nearest->pos, FALSE); |
425 |
if(dist2pixel(context, dist, nearest->pos.lat) < CLICK_FUZZ) { |
if(dist2pixel(context, dist, nearest->pos.lat) < CLICK_FUZZ) { |
426 |
|
|
427 |
osm_gps_map_draw_balloon(map, nearest->pos.lat, nearest->pos.lon, |
osm_gps_map_osd_draw_balloon(map, nearest->pos.lat, nearest->pos.lon, |
428 |
balloon_draw_cb, nearest); |
balloon_draw_cb, nearest); |
429 |
} |
} |
430 |
} |
} |
431 |
context->press_on = NULL; |
context->press_on = NULL; |