Skip to content

Commit

Permalink
fix color selector pages being incorrectly calculated
Browse files Browse the repository at this point in the history
  • Loading branch information
HJfod committed Feb 7, 2024
1 parent 48c1dfa commit f46921c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/BetterColorSelect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ class $modify(NewColorSelect, CustomizeObjectLayer) {

if (auto menu = m_mainLayer->getChildByID("page-menu"_spr)) {
static_cast<CCLabelBMFont*>(menu->getChildByID("current-page"))
->setString(fmt::format("Page {} / {}", page + 1, 1000 / CHANNELS_ON_PAGE).c_str());
->setString(fmt::format("Page {} / {}", page + 1, ceil(1000.f / CHANNELS_ON_PAGE)).c_str());
}

this->highlightSelected(nullptr);
Expand Down

0 comments on commit f46921c

Please sign in to comment.