]> err.no Git - mapper/commitdiff
Print POI title in very near zoom only.
authorKaj-Michael Lang <milang@tal.org>
Fri, 21 Mar 2008 12:43:46 +0000 (14:43 +0200)
committerKaj-Michael Lang <milang@tal.org>
Fri, 21 Mar 2008 12:43:46 +0000 (14:43 +0200)
src/map-poi.c

index cbe58ca21e065c1cfe35d71252bbac31e9c6cddb..b07fe237aa2af9626f8489990da3c613b41750ec 100644 (file)
@@ -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);
        }