From: Kaj-Michael Lang Date: Fri, 9 May 2008 13:43:38 +0000 (+0300) Subject: Map: Use queue_draw instead of queue_draw_area X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2fd8d5ede9f652ef5037d324e41333fda4cdfc8d;p=mapper Map: Use queue_draw instead of queue_draw_area --- diff --git a/src/map.c b/src/map.c index 8dd2617..e07396c 100644 --- a/src/map.c +++ b/src/map.c @@ -304,9 +304,9 @@ static void map_draw_mark(Gps *gps) { gdk_draw_arc(_map_widget->window, gps->io.conn == RCVR_FIXED ? _gc[COLORABLE_MARK] : _gc[COLORABLE_MARK_OLD], FALSE, - mark_x1 - _draw_width, mark_y1 - _draw_width, 2 * _draw_width, 2 * _draw_width, 0, 360 * 64); + mark_x1 - _draw_width, mark_y1 - _draw_width, 2 * _draw_width, 2 * _draw_width, 0, 360 * 64); gdk_draw_line(_map_widget->window, gps->io.conn == RCVR_FIXED ? (_show_velvec ? _gc[COLORABLE_MARK_VELOCITY] : _gc[COLORABLE_MARK]) : _gc[COLORABLE_MARK_OLD], - mark_x1, mark_y1, mark_x2, mark_y2); + mark_x1, mark_y1, mark_x2, mark_y2); } /** diff --git a/src/map.h b/src/map.h index 134f346..d5e635a 100644 --- a/src/map.h +++ b/src/map.h @@ -94,7 +94,7 @@ } #define MACRO_QUEUE_DRAW_AREA() \ - gtk_widget_queue_draw_area(_map_widget, 0, 0, _screen_width_pixels, _screen_height_pixels) + gtk_widget_queue_draw(_map_widget) /* Render all on-map metadata an annotations, including POI and paths. */ #define MACRO_MAP_RENDER_DATA() { \