* IT IS AN ERROR FOR BOTH POINTS TO INDICATE A BREAK.
*/
void
-map_render_segment(GdkGC * gc_norm, GdkGC * gc_alt,
- guint unitx1, guint unity1, guint unitx2, guint unity2)
+map_render_segment(GdkGC * gc_norm, GdkGC * gc_alt, guint unitx1, guint unity1, guint unitx2, guint unity2)
{
- vprintf("%s()\n", __PRETTY_FUNCTION__);
-
if (!unity1) {
guint x2, y2;
x2 = unit2bufx(unitx2);
y2 = unit2bufy(unity2);
/* Make sure this circle will be visible. */
- if ((x2 < BUF_WIDTH_PIXELS)
- && (y2 < BUF_HEIGHT_PIXELS))
+ if ((x2 < BUF_WIDTH_PIXELS) && (y2 < BUF_HEIGHT_PIXELS))
gdk_draw_arc(_map_pixmap, gc_alt, FALSE, /* FALSE: not filled. */
x2 - _draw_width, y2 - _draw_width, 2 * _draw_width, 2 * _draw_width, 0, /* start at 0 degrees. */
360 * 64);
x1 = unit2bufx(unitx1);
y1 = unit2bufy(unity1);
/* Make sure this circle will be visible. */
- if ((x1 < BUF_WIDTH_PIXELS)
- && ((unsigned)y1 < BUF_HEIGHT_PIXELS))
+ if ((x1 < BUF_WIDTH_PIXELS) && ((unsigned)y1 < BUF_HEIGHT_PIXELS))
gdk_draw_arc(_map_pixmap, gc_alt, FALSE, /* FALSE: not filled. */
x1 - _draw_width, y1 - _draw_width, 2 * _draw_width, 2 * _draw_width, 0, /* start at 0 degrees. */
360 * 64);
|| (y1 < 0 && y2 < 0)))
gdk_draw_line(_map_pixmap, gc_norm, x1, y1, x2, y2);
}
-
- vprintf("%s(): return\n", __PRETTY_FUNCTION__);
}
/**
{
Point *curr;
WayPoint *wcurr;
- printf("%s()\n", __PRETTY_FUNCTION__);
/* gc is a pointer to the first GC to use (for plain points). (gc + 1)
* is a pointer to the GC to use for waypoints, and (gc + 2) is a pointer
wcurr++;
}
}
-
- vprintf("%s(): return\n", __PRETTY_FUNCTION__);
}
void
map_render_paths()
{
- printf("%s()\n", __PRETTY_FUNCTION__);
-
if ((_show_tracks & ROUTES_MASK) && _route.head != _route.tail) {
map_render_path(&_route, _gc + COLORABLE_ROUTE);
}
if (_show_tracks & TRACKS_MASK)
map_render_path(&_track, _gc + COLORABLE_TRACK);
-
- vprintf("%s(): return\n", __PRETTY_FUNCTION__);
}
static
gboolean
map_key_zoom_timeout()
{
- printf("%s()\n", __PRETTY_FUNCTION__);
if (_key_zoom_new < _zoom) {
/* We're currently zooming in (_zoom is decreasing). */
guint test = _key_zoom_new - _curr_repo->view_zoom_steps;
snprintf(buffer, sizeof(buffer), "%s %d", _("Zoom to Level"), _key_zoom_new);
MACRO_BANNER_SHOW_INFO(_window, buffer);
}
- vprintf("%s(): return\n", __PRETTY_FUNCTION__);
return TRUE;
}
gboolean
map_cb_expose(GtkWidget * widget, GdkEventExpose * event)
{
-g_printf("%s(%d, %d, %d, %d)\n", __PRETTY_FUNCTION__,
- event->area.x, event->area.y,
- event->area.width, event->area.height);
-
gdk_draw_drawable(GDK_DRAWABLE(_map_widget->window),
_gc[COLORABLE_MARK],
_map_pixmap,
gboolean
map_cb_button_press(GtkWidget * widget, GdkEventButton * event)
{
- printf("%s()\n", __PRETTY_FUNCTION__);
-
_cmenu_position_x = event->x + 0.5;
_cmenu_position_y = event->y + 0.5;
}
/* Return FALSE to allow context menu to work. */
- vprintf("%s(): return FALSE\n", __PRETTY_FUNCTION__);
return FALSE;
}
void
path_resize(Path * path, guint size)
{
-printf("%s()\n", __PRETTY_FUNCTION__);
-
if (path->head + size != path->cap) {
Point *old_head = path->head;
WayPoint *curr;
path->head + (curr->point - old_head);
}
}
-vprintf("%s(): return\n", __PRETTY_FUNCTION__);
}
void
path_wresize(Path * path, guint wsize)
{
-printf("%s()\n", __PRETTY_FUNCTION__);
-
if (path->whead + wsize != path->wcap) {
WayPoint *old_whead = path->whead;
path->whead = g_renew(WayPoint, old_whead, wsize);
path->wtail = path->whead + (path->wtail - old_whead);
path->wcap = path->whead + wsize;
}
-
-vprintf("%s(): return\n", __PRETTY_FUNCTION__);
}