99
99
g_snprintf(wanted_filename, 255, "%s/%u/%u/%u.png", dir, zoom, x, y);
100
100
tile_hash = g_hash_table_lookup(hash_table, wanted_filename);
104
104
pixbuf = tile_hash->pixbuf;
106
106
tile_hash->reused = TRUE;
113
113
for(overzoom=0; overzoom<=3; overzoom++)
115
115
g_snprintf(filename, 255, "%s/%u/%u/%u.png", dir, zoom-overzoom, x/upscale, y/upscale);
117
117
pixbuf = gdk_pixbuf_new_from_file (filename, NULL);
125
125
if(pixbuf && upscale > 1)
127
127
GdkPixbuf *pixbuf_scaled = NULL;
128
pixbuf_scaled = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 256, 256);
128
pixbuf_scaled = gdk_pixbuf_new(GDK_COLORSPACE_RGB, TRUE, 8, 256, 256);
130
130
gdk_pixbuf_scale ( pixbuf, pixbuf_scaled,