summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-10-08 07:29:08 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-10-08 07:29:08 +0200
commit06d0374d896e79a510b2b0b56a3a75601e5201d0 (patch)
tree971d70d374004653b8fc52e72ed612530dbd3809
parent11a0cdba214e15c1dc8888fcf70fc5769ade5957 (diff)
parent80525e48bce10a629db7706fe1dc31c2e0402354 (diff)
Merge branch 'unstable' into trackhat-uitrackhat-1.1
* unstable: qfc: save retval's absolute value
-rw-r--r--qfunctionconfigurator/functionconfig.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/qfunctionconfigurator/functionconfig.cpp b/qfunctionconfigurator/functionconfig.cpp
index 594607ff..33f9beee 100644
--- a/qfunctionconfigurator/functionconfig.cpp
+++ b/qfunctionconfigurator/functionconfig.cpp
@@ -31,8 +31,8 @@ float Map::getValue(float x) {
float yiplus1 = getValueInternal(xi+1);
float f = (q-xi);
float ret = yiplus1 * f + yi * (1.0f - f); // at least do a linear interpolation.
- last_input_value.setX(x);
- last_input_value.setY(ret);
+ last_input_value.setX(std::fabs(x));
+ last_input_value.setY(std::fabs(ret));
return ret;
}