mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-30 20:15:38 +00:00
Fixed a potential rounding issue.
This commit is contained in:
parent
62d327b071
commit
975ff0eb69
|
@ -103,7 +103,7 @@ void MenuComponent::updateSize()
|
|||
int i = 0;
|
||||
while (i < mList->size()) {
|
||||
// Add the separator height to the row height so that it also gets properly rendered.
|
||||
float rowHeight = mList->getRowHeight(i) + (1 * Renderer::getScreenHeightModifier());
|
||||
float rowHeight = mList->getRowHeight(i) + (1.0f * Renderer::getScreenHeightModifier());
|
||||
if (height + rowHeight < maxHeight)
|
||||
height += rowHeight;
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue