mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-02-16 20:15:38 +00:00
Fixed an issue where large pixelated fonts sometimes displayed too many textlist rows.
This commit is contained in:
parent
e832288de3
commit
2ac706e0c5
|
@ -332,8 +332,9 @@ template <typename T> void TextListComponent<T>::render(const glm::mat4& parentT
|
|||
int startEntry {0};
|
||||
float y {0.0f};
|
||||
|
||||
const float entrySize {std::max(floorf(font->getHeight(1.0f)),
|
||||
floorf(static_cast<float>(font->getSize())) * mLineSpacing)};
|
||||
const float entrySize {
|
||||
std::max(floorf(font->getHeight(1.0f)), floorf(static_cast<float>(font->getSize()))) *
|
||||
mLineSpacing};
|
||||
const float lineSpacingHeight {floorf(font->getHeight(mLineSpacing) - font->getHeight(1.0f))};
|
||||
|
||||
// This extra vertical margin is technically incorrect, but it adds a little extra leeway
|
||||
|
|
Loading…
Reference in a new issue