Fixed NV14 slider position, compatible with TX16S alignment.

This commit is contained in:
Richard Li
2021-07-27 22:54:25 +08:00
parent 0a44682fd9
commit 6dee3187cd
2 changed files with 3 additions and 2 deletions
@@ -116,11 +116,12 @@ void ViewMainDecoration::adjustDecoration()
sl->setTop(pos);
if (IS_POT_MULTIPOS(POT2)) {
sl->setWidth(MULTIPOS_W);
sl->setLeft((width() - sl->width()) / 2); // This is the position of middle multipos pot
}
else { // if !IS_POT(POT2) -> sliders[SLIDERS_POT2] == nullptr
sl->setWidth(HORIZONTAL_SLIDERS_WIDTH);
sl->setLeft(width() - sl->width() - HMARGIN); // Normal pot position, align to right
}
sl->setLeft((width() - sl->width()) / 2);
}
#if defined(HARDWARE_POT3)