[apps/*curve_view] Substitute resolution by pixelWidth

This commit is contained in:
Ruben Dashyan
2019-07-11 12:22:56 +02:00
committed by EmilieNumworks
parent c80baae1e9
commit 292493ba36
5 changed files with 11 additions and 17 deletions

View File

@@ -84,7 +84,7 @@ InteractiveCurveViewRangeDelegate::Range FunctionGraphController::computeYRange(
range.max = xMax;
return range;
}
float step = (xMax - xMin) / curveView()->resolution() / 2;
const float step = curveView()->pixelWidth() / 2;
for (int i=0; i<functionStore()->numberOfActiveFunctions(); i++) {
ExpiringPointer<Function> f = functionStore()->modelForRecord(functionStore()->activeRecordAtIndex(i));
/* Scan x-range from the middle to the extrema in order to get balanced