From 7c1a48ec5c1a7dbc60e2dddee5bc0f94194a39ed Mon Sep 17 00:00:00 2001 From: Leon Styhre Date: Tue, 25 Oct 2022 20:49:22 +0200 Subject: [PATCH] Removed two unnecessary roundings from OptionListComponent. --- es-core/src/components/OptionListComponent.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/es-core/src/components/OptionListComponent.h b/es-core/src/components/OptionListComponent.h index 8704e68c5..40ca877c8 100644 --- a/es-core/src/components/OptionListComponent.h +++ b/es-core/src/components/OptionListComponent.h @@ -327,7 +327,7 @@ private: mText.setText(ss.str()); mText.setSize(0, mText.getSize().y); 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); if (mParent) // Hack since there's no "on child size changed" callback. mParent->onSizeChanged(); @@ -351,7 +351,7 @@ private: mText.setSize(0.0f, mText.getSize().y); 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); if (mParent) // Hack since there's no "on child size changed" callback. mParent->onSizeChanged();