Merge pull request #167 from mapbox/fix-z22

Even if the maxzoom is very high, don't use more bits of precision than exist
This commit is contained in:
Eric Fischer 2016-02-03 16:59:22 -08:00
commit 6239809632

View File

@ -2259,6 +2259,9 @@ int main(int argc, char **argv) {
}
geometry_scale = 32 - (full_detail + maxzoom);
if (geometry_scale < 0) {
geometry_scale = 0;
}
if ((basezoom < 0 || droprate < 0) && (gamma < 0)) {
// Can't use randomized (as opposed to evenly distributed) dot dropping