From 7379ada50fed30aeb1871203f3ab0b6d5e4255cd Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 26 Feb 2008 19:01:12 +0200 Subject: [PATCH] Fix copy&paste error --- src/map.c | 10 ++++------ src/map.h | 2 +- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/map.c b/src/map.c index 6ee6c19..6afafea 100644 --- a/src/map.c +++ b/src/map.c @@ -471,10 +471,8 @@ g_timer_start(map_timer); #endif for (new_y = 0; new_y < buf_height_tiles; ++new_y) for (new_x = 0; new_x < buf_width_tiles; ++new_x) { - map_render_tile(_base_tilex + new_x, - _base_tiley + new_y, - new_x * TILE_SIZE_PIXELS, - new_y * TILE_SIZE_PIXELS, FALSE); + map_render_tile(_base_tilex + new_x, _base_tiley + new_y, + new_x * TILE_SIZE_PIXELS, new_y * TILE_SIZE_PIXELS, FALSE); } #ifdef DEBUG_MAP_TIME g_timer_stop(map_timer); @@ -817,11 +815,11 @@ if (!unity1) { } void -map_render_waypoint(guint x1, guint y1, GdkGC ** gc) +map_render_waypoint(guint x1, guint y1, GdkGC *gc) { if ((x1 > buf_width_pixels) || (y1 > buf_height_pixels)) return; -gdk_draw_arc(_map_pixmap, gc[1], FALSE, x1 - _draw_width, y1 - _draw_width, 2 * _draw_width, 2 * _draw_width, 0, 360 * 64); +gdk_draw_arc(_map_pixmap, gc, FALSE, x1 - _draw_width, y1 - _draw_width, 2 * _draw_width, 2 * _draw_width, 0, 360 * 64); } /** diff --git a/src/map.h b/src/map.h index 9a223b1..047c0fe 100644 --- a/src/map.h +++ b/src/map.h @@ -204,7 +204,7 @@ void map_set_mark(GpsData *gps); void map_render_data(void); gboolean map_render_tile(guint tilex, guint tiley, guint destx, guint desty, gboolean fast_fail); -void map_render_waypoint(guint x1, guint y1, GdkGC ** gc); +void map_render_waypoint(guint x1, guint y1, GdkGC *gc); void map_center_unit(guint new_center_unitx, guint new_center_unity); void map_center_latlon(gdouble lat, gdouble lon); -- 2.39.5