mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-25 15:45:38 +00:00
Removed two unnecessary roundings from OptionListComponent.
This commit is contained in:
parent
3e8c7850c7
commit
7c1a48ec5c
|
@ -327,7 +327,7 @@ private:
|
||||||
mText.setText(ss.str());
|
mText.setText(ss.str());
|
||||||
mText.setSize(0, mText.getSize().y);
|
mText.setSize(0, mText.getSize().y);
|
||||||
setSize(mText.getSize().x + mRightArrow.getSize().x +
|
setSize(mText.getSize().x + mRightArrow.getSize().x +
|
||||||
std::round(Font::get(FONT_SIZE_MEDIUM)->getLetterHeight() * 0.68f),
|
Font::get(FONT_SIZE_MEDIUM)->getLetterHeight() * 0.68f,
|
||||||
mText.getSize().y);
|
mText.getSize().y);
|
||||||
if (mParent) // Hack since there's no "on child size changed" callback.
|
if (mParent) // Hack since there's no "on child size changed" callback.
|
||||||
mParent->onSizeChanged();
|
mParent->onSizeChanged();
|
||||||
|
@ -351,7 +351,7 @@ private:
|
||||||
|
|
||||||
mText.setSize(0.0f, mText.getSize().y);
|
mText.setSize(0.0f, mText.getSize().y);
|
||||||
setSize(mText.getSize().x + mLeftArrow.getSize().x + mRightArrow.getSize().x +
|
setSize(mText.getSize().x + mLeftArrow.getSize().x + mRightArrow.getSize().x +
|
||||||
std::round(Font::get(FONT_SIZE_MEDIUM)->getLetterHeight() * 0.68f),
|
Font::get(FONT_SIZE_MEDIUM)->getLetterHeight() * 0.68f,
|
||||||
mText.getSize().y);
|
mText.getSize().y);
|
||||||
if (mParent) // Hack since there's no "on child size changed" callback.
|
if (mParent) // Hack since there's no "on child size changed" callback.
|
||||||
mParent->onSizeChanged();
|
mParent->onSizeChanged();
|
||||||
|
|
Loading…
Reference in a new issue