static void map_poi_title(gint x, gint y,gchar *title)
{
+gint w,h;
+
pango_layout_set_text(layout, title, -1);
-gdk_draw_layout(_map_pixmap, _gc[COLORABLE_POI], x, y, layout);
+pango_layout_get_pixel_size(layout, &w, &h);
+gdk_draw_layout(_map_pixmap, _gc[COLORABLE_POI], x-(w>>1), y-h-_draw_width, layout);
}
static GdkPixbuf *map_poi_get_icon(gchar *icon)
3 * _draw_width,
3 * _draw_width);
if (_zoom<3 && poi_label)
- map_poi_title(poix - 10, poiy + _draw_width, poi_label);
+ map_poi_title(poix, poiy, poi_label);
} else {
gdk_draw_pixbuf(_map_pixmap,
_gc[COLORABLE_POI],