mirror of
https://github.com/J-D-K/JKSV.git
synced 2026-03-21 17:24:37 -05:00
Revert experimental changes and fix minor bug in ui::Transition.
This commit is contained in:
parent
38ce9a79ef
commit
9c98aabdd4
|
|
@ -116,9 +116,9 @@ bool ui::Menu::is_empty() const noexcept { return m_options.empty(); }
|
|||
|
||||
void ui::Menu::calculate_alignments() noexcept
|
||||
{
|
||||
m_optionHeight = std::round(static_cast<double>(m_fontSize) * 1.8f);
|
||||
m_optionHeight = std::floor(static_cast<double>(m_fontSize) * 1.8f);
|
||||
m_maxDisplayOptions = (m_renderTargetHeight - m_originalY) / m_optionHeight;
|
||||
m_scrollLength = std::round(static_cast<double>(m_maxDisplayOptions) / 2.0f);
|
||||
m_scrollLength = std::floor(static_cast<double>(m_maxDisplayOptions) / 2.0f);
|
||||
m_textY = (m_optionHeight / 2) - (m_fontSize / 2);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -152,5 +152,5 @@ void ui::Transition::update_height() noexcept
|
|||
}
|
||||
|
||||
const double add = (m_targetHeight - m_height) / sm_scaling;
|
||||
m_height += add;
|
||||
m_height += std::round(add);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user