From 93e8d6f92a1d04e00df2e0a9ec479810cc0487ef Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 9 Nov 2019 12:00:44 +0100 Subject: [PATCH] asonov:: affected by binary_width --- asonov.cpp | 4 ++-- geom-exp.cpp | 1 + geometry.cpp | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/asonov.cpp b/asonov.cpp index 3e242c4e..98c8733d 100644 --- a/asonov.cpp +++ b/asonov.cpp @@ -88,8 +88,8 @@ EX void prepare() { transmatrix ieigen = inverse(eigen); - tx = point3(ieigen[0][0], ieigen[1][0], 0); - ty = point3(ieigen[0][1], ieigen[1][1], 0); + tx = point3(ieigen[0][0], ieigen[1][0], 0) * vid.binary_width; + ty = point3(ieigen[0][1], ieigen[1][1], 0) * vid.binary_width; tz = -point3(0, 0, log(lambda[0])); DEBB(DF_GEOM, ("tx = ", tx, " ty = ", ty, " tz = ", tz)); diff --git a/geom-exp.cpp b/geom-exp.cpp index edfa693c..8ff1bc75 100644 --- a/geom-exp.cpp +++ b/geom-exp.cpp @@ -722,6 +722,7 @@ EX void showEuclideanMenu() { #if CAP_TEXTURE texture::config.remap(); #endif + if(asonov::in()) asonov::prepare(); }; }); extern void add_edit_wall_quality(char); diff --git a/geometry.cpp b/geometry.cpp index a0cac0e1..6949f6cf 100644 --- a/geometry.cpp +++ b/geometry.cpp @@ -551,6 +551,7 @@ void geometry_information::prepare_basics() { #if CAP_BT if(binarytiling) hexvdist = rhexf = 1, tessf = 1, scalefactor = 1, crossf = hcrossf7; if(geometry == gHoroRec || penrose || sol || nil || nih) hexvdist = rhexf = .5, tessf = .5, scalefactor = .5, crossf = hcrossf7/2; + if(binarytiling) scalefactor *= min(vid.binary_width, 1), crossf *= min(vid.binary_width, 1); #endif #if CAP_BT && MAXMDIM >= 4 if(binarytiling) binary::build_tmatrix();