diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 09:27:34 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2015-07-26 09:27:34 +0200 |
commit | 0f24550bcce54f7b1265605c005c382b5f80fa5f (patch) | |
tree | 54af2c0116a5cb4450d36b91900d68722366a6ac /qfunctionconfigurator | |
parent | 2f631a5159542f7e2813ca6ed7bc0be37c50afae (diff) |
qfc: reduce artifacts on high-frequency functions
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r-- | qfunctionconfigurator/functionconfig.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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<int>(sz, p2.x() * mult); + // multiplier helps fill in all the x's needed + const int mult_ = mult * 20; + int end = std::min<int>(sz, p2.x() * mult_); int start = p1.x() * mult; for (int j = start; j < end; j++) { |