void
track_show_distance_from_first()
{
-/* Find last zero point. */
if (_track.head != _track.tail) {
track_show_distance_from(_track.head);
} else {
MACRO_BANNER_SHOW_INFO(_window, _("The current track is empty."));
}
-printf("%s(): return\n", __PRETTY_FUNCTION__);
}
/**
gboolean show_directions = TRUE;
gint announce_thres_unsquared;
-if (abs((gint) _pos.unitx - _track.tail->unitx) > _draw_width || abs((gint) _pos.unity - _track.tail->unity) > _draw_width) {
+if (abs((gint)_pos.unitx-_track.tail->unitx) > _draw_width || abs((gint)_pos.unity-_track.tail->unity) > _draw_width) {
/* If time != 0, update the nearest-waypoint data. */
if (time && _route.head != _route.tail &&
(newly_fixed ? (route_find_nearest_point(), TRUE) : route_update_nears(TRUE))) {
KEEP_DISPLAY_ON();
}
-announce_thres_unsquared = (20 + (guint) _gps.speed) * _announce_notice_ratio * 3;
+announce_thres_unsquared=(20+(guint)_gps.speed)*_announce_notice_ratio*3;
/* Check if we should announce upcoming waypoints. */
if (show_directions && time && _next_way_dist_squared < (announce_thres_unsquared * announce_thres_unsquared)) {
if (_enable_voice && strcmp(_next_way->desc, _last_spoken_phrase)) {
g_free(_last_spoken_phrase);
- _last_spoken_phrase = g_strdup(_next_way->desc);
+ _last_spoken_phrase=g_strdup(_next_way->desc);
speak_text(_last_spoken_phrase);
}
MACRO_BANNER_SHOW_INFO(_window, _next_way->desc);
/* To mark a "waypoint" in a track, we'll add a (0, 0) point and then
* another instance of the most recent track point. */
MACRO_PATH_INCREMENT_TAIL(_track);
-*_track.tail = _point_null;
+*_track.tail=_point_null;
MACRO_PATH_INCREMENT_TAIL(_track);
-*_track.tail = _track.tail[-2];
+*_track.tail=_track.tail[-2];
-/** Instead of calling map_render_paths(), we'll just add the waypoint
- * ourselves. */
+/* Instead of calling map_render_paths(), we'll just add the waypoint ourselves. */
x1 = unit2bufx(_track.tail->unitx);
y1 = unit2bufy(_track.tail->unity);
/* Make sure this circle will be visible. */
if ((x1 < BUF_WIDTH_PIXELS) && ((unsigned)y1 < BUF_HEIGHT_PIXELS))
- gdk_draw_arc(_map_pixmap, _gc[COLORABLE_TRACK_BREAK], FALSE, /* FALSE: not filled. */
- x1 - _draw_width, y1 - _draw_width, 2 * _draw_width, 2 * _draw_width, 0, /* start at 0 degrees. */
- 360 * 64);
+ gdk_draw_arc(_map_pixmap, _gc[COLORABLE_TRACK_BREAK], FALSE,
+ x1 - _draw_width, y1 - _draw_width,
+ 2 * _draw_width, 2 * _draw_width, 0,
+ 360 * 64);
} else {
MACRO_BANNER_SHOW_INFO(_window, _("Break already inserted."));
}
GtkWidget *txt_scroll;
GtkWidget *txt_desc;
-printf("%s()\n", __PRETTY_FUNCTION__);
-
dialog = gtk_dialog_new_with_buttons(_("Insert Mark"),
GTK_WINDOW(_window),
GTK_DIALOG_MODAL, GTK_STOCK_OK,