box_height -= box_y;
// catch box at borders
if(box_width < 0 || box_height < 0)
- continue; // skip this. this is out of our viewport anyway. FIXME: why?
+ // skip this as is out of the viewport (e.g. zoomed in so this point is way off screen)
+ continue;
gboolean below_minimum = FALSE;
if(vdl->type == DEM_TYPE_HEIGHT) {
}
{
- if(box_width < 0 || box_height < 0) // FIXME: why does this happen?
- continue;
-
if(vdl->type == DEM_TYPE_GRADIENT) {
if( elev == VIK_DEM_INVALID_ELEVATION ) {
/* don't draw it */
(intlon >= 0) ? 'E' : 'W',
ABS(intlon) );
- static DownloadMapOptions options = { FALSE, FALSE, NULL, 0, a_check_map_file, NULL, NULL };
+ static DownloadFileOptions options = { FALSE, FALSE, NULL, 0, a_check_map_file, NULL, NULL };
DownloadResult_t result = a_http_download_get_url ( SRTM_HTTP_SITE, src_fn, p->dest, &options, NULL );
switch ( result ) {
case DOWNLOAD_CONTENT_ERROR: