summaryrefslogtreecommitdiffhomepage
path: root/qfunctionconfigurator
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-07-26 09:59:59 +0200
committerStanislaw Halik <sthalik@misaki.pl>2015-07-26 09:59:59 +0200
commit191bbda2b587bfe612a96199eff75a225a018a2e (patch)
tree03edf51e9d2a7c60053520cc88de760ed5a8b0c6 /qfunctionconfigurator
parent1fb157e31c404489e6aef58288ad0d75fb5e1640 (diff)
qfc: sensible step when drawing
Higher step value allows more precision when spline doesn't match the control points.
Diffstat (limited to 'qfunctionconfigurator')
-rw-r--r--qfunctionconfigurator/qfunctionconfigurator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/qfunctionconfigurator/qfunctionconfigurator.cpp b/qfunctionconfigurator/qfunctionconfigurator.cpp
index d3525c1d..d058f905 100644
--- a/qfunctionconfigurator/qfunctionconfigurator.cpp
+++ b/qfunctionconfigurator/qfunctionconfigurator.cpp
@@ -133,7 +133,7 @@ void QFunctionConfigurator::drawFunction()
QPen pen(spline_color, 1.2, Qt::SolidLine);
const double max = _config->maxInput();
- const double step = std::max(1e-3, max / 1000.);
+ const double step = std::max(1e-2, max / 500.);
QPointF prev = point_to_pixel(QPointF(0, 0));
for (double i = 0; i < max; i += step) {