From: Kaj-Michael Lang Date: Tue, 9 Oct 2007 12:27:00 +0000 (+0300) Subject: Use POI color for title X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=228678f803f057e5016e2994b778c1ef112f5282;p=mapper Use POI color for title --- diff --git a/src/map-poi.c b/src/map-poi.c index 63e9515..3964c00 100644 --- a/src/map-poi.c +++ b/src/map-poi.c @@ -40,13 +40,13 @@ return TRUE; } 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 * @@ -163,7 +163,7 @@ while (SQLITE_ROW == sqlite3_step(poisql.select_poi)) { 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);