Curves look a lot better keeping 1/4-pixel detail at any zoom

This commit is contained in:
Eric Fischer 2014-09-24 17:57:18 -07:00
parent 4de57b960d
commit 1bcbd0661c

View File

@ -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++) {