]> err.no Git - mapper/commitdiff
Fix copy&paste error
authorKaj-Michael Lang <milang@onion.tal.org>
Tue, 26 Feb 2008 17:01:12 +0000 (19:01 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Tue, 26 Feb 2008 17:01:12 +0000 (19:01 +0200)
src/map.c
src/map.h

index 6ee6c192f6c3ac6445d671fc6726c26a759fee06..6afafea27ecc333ab8bfba45f956a566a1cf290e 100644 (file)
--- 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);
 }
 
 /**
index 9a223b1981b0d30fef270e406f62dac49c3b813a..047c0fe0339dd14d02df169f4d8b6357f7d3b9d5 100644 (file)
--- 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);