Add options to specify the base and low-zoom level of detail

This commit is contained in:
Eric Fischer
2014-09-26 10:52:19 -07:00
parent 528e0575e2
commit 0a8420cc2e
2 changed files with 22 additions and 9 deletions
+1 -1
View File
@@ -341,7 +341,7 @@ void douglas_peucker(struct draw *geom, int n, double e) {
}
int simplify_lines(struct draw *geom, int n, int z, int detail) {
int res = 1 << (32 - 10 - z); // 1/4 pixel
int res = 1 << (32 - detail - z);
int i;
for (i = 0; i < n; i++) {