From 6c622e807ce4e6cea152e4e8ae2711095caefeef Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 8 Apr 2008 11:31:04 +0300 Subject: [PATCH] Use g_debug instead of g_printf + small cosmetic changes. --- src/map-poi.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/map-poi.c b/src/map-poi.c index b07fe23..61ec6b0 100644 --- a/src/map-poi.c +++ b/src/map-poi.c @@ -126,10 +126,10 @@ guint pois; /* Reload POIs if we zoom out or have moved */ if ((last_zoom<_zoom || prev_ux!=unitx || prev_uy!=unity) && poi_store!=NULL) { - g_printf("Reloading POIs\n"); + g_debug("Reloading POIs"); map_poi_cache_clear(); } else { - g_printf("Using cached POIs\n"); + g_debug("Using cached POIs"); } if (poi_store==NULL) { @@ -189,7 +189,6 @@ return found; void map_render_all_pois(guint width, guint height) { -GdkPixbuf *pixbuf = NULL; GtkTreeIter iter; guint unitx, unity; gint poix, poiy; @@ -199,12 +198,12 @@ gboolean valid; if (_poi_zoom <= _zoom) return; -unitx = x2unit(0); -unity = y2unit(height); +unitx=x2unit(0); +unity=y2unit(height); unit2latlon(unitx, unity, lat1, lon1); -unitx = x2unit(width); -unity = y2unit(0); +unitx=x2unit(width); +unity=y2unit(0); unit2latlon(unitx, unity, lat2, lon2); if (map_poi_reload_poi(unitx, unity, lat1, lon1, lat2, lon2)==FALSE) @@ -223,6 +222,7 @@ prev_ux=unitx; prev_uy=unity; while (valid) { + GdkPixbuf *pixbuf; GdkGC *gc; gchar *label; gchar *icon=NULL, *color=NULL; -- 2.39.5