From 0f24550bcce54f7b1265605c005c382b5f80fa5f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 26 Jul 2015 09:27:34 +0200 Subject: qfc: reduce artifacts on high-frequency functions --- qfunctionconfigurator/functionconfig.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'qfunctionconfigurator') diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp index 2b9d3a07..dc2153a7 100644 --- a/qfunctionconfigurator/functionconfig.cpp +++ b/qfunctionconfigurator/functionconfig.cpp @@ -102,7 +102,9 @@ void Map::reload() { const float p0_x = p0.x(), p1_x = p1.x(), p2_x = p2.x(), p3_x = p3.x(); const float p0_y = p0.y(), p1_y = p1.y(), p2_y = p2.y(), p3_y = p3.y(); - int end = std::min(sz, p2.x() * mult); + // multiplier helps fill in all the x's needed + const int mult_ = mult * 20; + int end = std::min(sz, p2.x() * mult_); int start = p1.x() * mult; for (int j = start; j < end; j++) { -- cgit v1.2.3