From 1bcbd0661c6d13780f200f0b10e7daebb614401b Mon Sep 17 00:00:00 2001 From: Eric Fischer Date: Wed, 24 Sep 2014 17:57:18 -0700 Subject: [PATCH] Curves look a lot better keeping 1/4-pixel detail at any zoom --- tile.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tile.cc b/tile.cc index 9be0285d..9a9d145b 100644 --- a/tile.cc +++ b/tile.cc @@ -340,7 +340,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 - detail - z + 2); + int res = 1 << (32 - 10 - z); // 1/4 pixel int i; for (i = 0; i < n; i++) {