From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 12:43:46 +0000 (+0200) Subject: Print POI title in very near zoom only. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=da485aaddb4693e2cb901239490ae982ceb9de40;p=mapper Print POI title in very near zoom only. --- diff --git a/src/map-poi.c b/src/map-poi.c index cbe58ca..b07fe23 100644 --- a/src/map-poi.c +++ b/src/map-poi.c @@ -214,15 +214,9 @@ valid=gtk_tree_model_get_iter_first(GTK_TREE_MODEL(poi_store), &iter); if (!valid) return; -if (_zoom<2) { - pango_font_description_set_size(fontdesc, POI_FONT_SIZE_BIG*PANGO_SCALE); - pango_layout_set_font_description (layout, fontdesc); - pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_NONE); -} else { - pango_font_description_set_size(fontdesc, POI_FONT_SIZE_SMALL*PANGO_SCALE); - pango_layout_set_font_description (layout, fontdesc); - pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_END); -} +pango_font_description_set_size(fontdesc, POI_FONT_SIZE_SMALL*PANGO_SCALE); +pango_layout_set_font_description (layout, fontdesc); +pango_layout_set_ellipsize(layout, PANGO_ELLIPSIZE_NONE); last_zoom=_zoom; prev_ux=unitx; @@ -266,7 +260,7 @@ while (valid) { #endif } - if (_zoom<3 && label) { + if (_zoom<2 && label) { map_poi_title(poix, poiy, gc, label); }