fix: graph jitter on load + format
This commit is contained in:
@@ -41,8 +41,8 @@ qreal fromDev(qint64 device, qreal dpr) {
|
||||
// points depending on floating point noise.
|
||||
qreal snapCenterDev(qint64 sizeDev, qint64 widthDev) {
|
||||
const double halfParity = (widthDev % 2) == 0 ? 0.0 : 0.5;
|
||||
return std::floor(static_cast<double>(sizeDev) / 2.0 - halfParity)
|
||||
+ halfParity;
|
||||
return std::floor(static_cast<double>(sizeDev) / 2.0 - halfParity) +
|
||||
halfParity;
|
||||
}
|
||||
|
||||
qint64 snapAmplitude(qint64 widthDev, qreal multiplier) {
|
||||
|
||||
Reference in New Issue
Block a user