svg:: works nicely with smart_range

This commit is contained in:
Zeno Rogue committed 2018-11-11 11:27:36 +01:00
1 parent 549d86b15d
commit c8e0371a4c
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -706,6 +706,7 @@ bool in_smart_range(const transmatrix& T) {
ld x2 = vid.radius * abs(h3[0] - h1[0]) / epsilon;
ld y2 = vid.radius * abs(h3[1] - h1[1]) * vid.stretch / epsilon;
ld scale = sqrt(hypot(x1, y1) * hypot(x2, y2)) * scalefactor * hcrossf7;
if(svg::in) scale /= svg::divby;
return
scale > vid.smart_range_detail &&
x - 2 * max(x1, x2) < vid.xres &&