mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Reverted a change in TextComponent as it caused unforeseen issues
This commit is contained in:
parent
2e01613e41
commit
5d653a9e93
|
@ -484,7 +484,7 @@ void TextComponent::onTextChanged()
|
|||
std::shared_ptr<Font> font {mFont};
|
||||
|
||||
// Used to initialize all glyphs, which is needed to populate mMaxGlyphHeight.
|
||||
lineHeight = mFont->loadGlyphs(text) * mLineSpacing;
|
||||
lineHeight = mFont->loadGlyphs(text + "\n") * mLineSpacing;
|
||||
|
||||
const bool isMultiline {mAutoCalcExtent.y == 1 || mSize.y * mRelativeScale > lineHeight};
|
||||
float offsetY {0.0f};
|
||||
|
|
Loading…
Reference in a new issue