diff options
author | RJ Ryan <rryan@mixxx.org> | 2014-01-03 17:17:46 -0500 |
---|---|---|
committer | RJ Ryan <rryan@mixxx.org> | 2014-01-03 17:17:46 -0500 |
commit | bc4188a5ebf683eba68c59395daea75cdd250da1 (patch) | |
tree | 9be75f6d325b94411d155976eaadd8dbdd3d5276 /src/widget/wdisplay.cpp | |
parent | 6fcd283cd80a34747320340ecc9a17b9b4b9606a (diff) |
Revert "Revert "Normalize potmeter widget values to [0.0, 1.0] instead of [0.0, 127.0].""
This reverts commit 6fcd283cd80a34747320340ecc9a17b9b4b9606a.
Diffstat (limited to 'src/widget/wdisplay.cpp')
-rw-r--r-- | src/widget/wdisplay.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/widget/wdisplay.cpp b/src/widget/wdisplay.cpp index 0d8bbf9cb5..7c325e598a 100644 --- a/src/widget/wdisplay.cpp +++ b/src/widget/wdisplay.cpp @@ -108,8 +108,7 @@ void WDisplay::setPixmap(QVector<PaintablePointer>* pPixmaps, int iPos, } int WDisplay::getActivePixmapIndex() const { - return static_cast<int>( - m_value * static_cast<double>(m_pixmaps.size()) / 128.0); + return static_cast<int>(m_value * m_pixmaps.size()); } void WDisplay::paintEvent(QPaintEvent* ) { |