X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/9de4d4212093898022b739c641010000b89c9f72..ba9d0a00bb9c614423562381e6edca2a33d28b54:/src/mapcache.c?ds=inline diff --git a/src/mapcache.c b/src/mapcache.c index cbd61246..5485f178 100644 --- a/src/mapcache.c +++ b/src/mapcache.c @@ -18,10 +18,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * */ +#ifdef HAVE_CONFIG_H +#include "config.h" +#endif #include #include #include +#include "globals.h" #include "mapcache.h" #include "preferences.h" @@ -48,9 +52,6 @@ static GMutex *mc_mutex = NULL; #define HASHKEY_FORMAT_STRING "%d-%d-%d-%d-%d-%d-%.3f-%.3f" #define HASHKEY_FORMAT_STRING_NOSHRINK_NOR_ALPHA "%d-%d-%d-%d-%d-" -#define VIKING_PREFERENCES_GROUP_KEY "viking.globals" -#define VIKING_PREFERENCES_NAMESPACE "viking.globals." - static VikLayerParamScale params_scales[] = { /* min, max, step, digits (decimal places) */ { 1, 300, 1, 0 }, @@ -151,7 +152,7 @@ void a_mapcache_add ( GdkPixbuf *pixbuf, gint x, gint y, gint z, guint8 type, gu } g_mutex_unlock(mc_mutex); - if ( (++tmp == 100 )) { g_print("DEBUG: queue count=%d %u\n", queue_count, queue_size ); tmp=0; } + if ( (++tmp == 100 )) { g_print("DEBUG: queue count=%d size=%u\n", queue_count, queue_size ); tmp=0; } } GdkPixbuf *a_mapcache_get ( gint x, gint y, gint z, guint8 type, guint zoom, guint8 alpha, gdouble xshrinkfactor, gdouble yshrinkfactor )