#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);
}
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);
}
/**
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);