From da485aaddb4693e2cb901239490ae982ceb9de40 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Fri, 21 Mar 2008 14:43:46 +0200 Subject: [PATCH] Print POI title in very near zoom only. --- src/map-poi.c | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) 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); } -- 2.39.5