From 975ff0eb695ce2f86300f3cfbdfe21299b56c1f0 Mon Sep 17 00:00:00 2001
From: Leon Styhre <leon@leonstyhre.com>
Date: Sun, 17 Oct 2021 21:20:17 +0200
Subject: [PATCH] Fixed a potential rounding issue.

---
 es-core/src/components/MenuComponent.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/es-core/src/components/MenuComponent.cpp b/es-core/src/components/MenuComponent.cpp
index e7c3c0964..f1cfe029d 100644
--- a/es-core/src/components/MenuComponent.cpp
+++ b/es-core/src/components/MenuComponent.cpp
@@ -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