From ddba5f0faa6851719597366f1908cfdea6490be5 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sun, 23 Sep 2018 13:56:28 +0200 Subject: [PATCH] matrix-based queuestr and queuecircle now know how to scale their output appropriately to geometry --- polygons.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/polygons.cpp b/polygons.cpp index 6e0aeff5..0bcaa871 100644 --- a/polygons.cpp +++ b/polygons.cpp @@ -2664,13 +2664,13 @@ void queuestr(const hyperpoint& h, int size, const string& chr, color_t col, int void queuestr(const transmatrix& V, double size, const string& chr, color_t col, int frame, int align) { int xc, yc, sc; getcoord0(tC0(V), xc, yc, sc); - int xs, ys, ss; getcoord0(V * xpush0(.5), xs, ys, ss); + int xs, ys, ss; getcoord0(V * xpush0(.5 * scalefactor), xs, ys, ss); queuestr(xc, yc, sc, int(sqrt(squar(xc-xs)+squar(yc-ys)) * size), chr, col, frame, align); } void queuecircle(const transmatrix& V, double size, color_t col) { int xc, yc, sc; getcoord0(tC0(V), xc, yc, sc); - int xs, ys, ss; getcoord0(V * xpush0(.5), xs, ys, ss); + int xs, ys, ss; getcoord0(V * xpush0(.5 * scalefactor), xs, ys, ss); queuecircle(xc, yc, int(sqrt(squar(xc-xs)+squar(yc-ys)) * size), col); }