Summary:
Fix to calculator map size not to be smaller than viewport size when zoom mode is either fit or fill.
Previously, map size could be either smaller or larger than viewport.
@fix
Reviewers: Hermet, raster
Reviewed By: raster
Differential Revision: https://phab.enlightenment.org/D861
w = pow(2.0, zoom) * sd->tsize;
h = pow(2.0, zoom) * sd->tsize;
}
+ zoom -= diff;
}
}
else if (sd->mode == ELM_MAP_ZOOM_MODE_AUTO_FILL)
w = pow(2.0, zoom) * sd->tsize;
h = pow(2.0, zoom) * sd->tsize;
}
+ zoom -= diff;
}
}
_zoom_do(sd, zoom);