}
static void
-map_poi_title(gint x, gint y,gchar *title)
+map_poi_title(gint x, gint y, GdkGC *gc, gchar *title)
{
gint w,h;
pango_layout_set_text(layout, title, -1);
pango_layout_get_pixel_size(layout, &w, &h);
-gdk_draw_layout(_map_pixmap, _gc[COLORABLE_POI], x-(w>>1), y-h-_draw_width, layout);
+gdk_draw_layout(_map_pixmap, gc, x-(w>>1), y-h-_draw_width, layout);
}
static GdkPixbuf *
gdk_draw_rectangle(_map_pixmap, gc, FALSE, poix-w/2-1, poiy-h/2-1, w+1, h+1);
}
if (_zoom<3 && poi_label) {
- map_poi_title(poix, poiy, poi_label);
+ map_poi_title(poix, poiy, gc, poi_label);
}
}
sqlite3_reset(poisql.select_poi);