Fix gridding of small squares; use less memory for small features

This commit is contained in:
Eric Fischer
2018-11-21 15:34:43 -08:00
parent 739445cb6c
commit 5229990523
11 changed files with 10990 additions and 1431 deletions
+2 -2
View File
@@ -1135,8 +1135,8 @@ drawvec stairstep(drawvec &geom, int z, int detail) {
double scale = 1 << (32 - detail - z);
for (size_t i = 0; i < geom.size(); i++) {
geom[i].x = std::round(geom[i].x / scale);
geom[i].y = std::round(geom[i].y / scale);
geom[i].x = std::floor(geom[i].x / scale);
geom[i].y = std::floor(geom[i].y / scale);
}
for (size_t i = 0; i < geom.size(); i++) {