gboolean
map_download_idle_refresh(ProgressUpdateInfo * pui)
{
+guint tmp=0;
/* Test if download succeeded (only if retries != 0). */
if (!pui->retries || g_file_test(pui->dest_str, G_FILE_TEST_EXISTS)) {
gint zoom_diff = pui->zoom - _zoom;
* this tile, then we may have to update more than one tile. */
for (tilex = pui->tilex << zoom_diff, tilex_end = tilex + (1 << zoom_diff); tilex < tilex_end; tilex++) {
for (tiley = pui->tiley << zoom_diff, tiley_end = tiley + (1 << zoom_diff); tiley < tiley_end; tiley++) {
- g_debug("MDIR: %d %d", tilex, tiley);
+ tmp++;
if (map_render_tile(tilex, tiley, ((tilex - _base_tilex) << TILE_SIZE_P2), ((tiley - _base_tiley) << TILE_SIZE_P2), TRUE)==TRUE) {
map_render_data();
gtk_widget_queue_draw_area(_map_widget,
}
}
}
+ g_debug("*** MDIR LOOP: %u", tmp);
}
}
/* Else the download failed. Update retries and maybe try again. */