mirror of
https://github.com/UpsilonNumworks/Upsilon.git
synced 2026-01-19 00:37:25 +01:00
[apps/*curve_view] Substitute resolution by pixelWidth
This commit is contained in:
committed by
EmilieNumworks
parent
c80baae1e9
commit
292493ba36
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user