]> err.no Git - mapper/commitdiff
Use POI color for title
authorKaj-Michael Lang <milang@onion.tal.org>
Tue, 9 Oct 2007 12:27:00 +0000 (15:27 +0300)
committerKaj-Michael Lang <milang@onion.tal.org>
Tue, 9 Oct 2007 12:27:00 +0000 (15:27 +0300)
src/map-poi.c

index 63e95156e03526951ecef8c1a27c8868304f399d..3964c00c0ac4df5ad163e659a37397a1e1ae14f6 100644 (file)
@@ -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);