From bfdec378b8561d5711594311d8c629ce1f6dbf2d Mon Sep 17 00:00:00 2001 From: Aloshi Date: Fri, 16 May 2014 16:26:11 -0500 Subject: [PATCH] Fixed rounding in HelpComponent. Floating point is a bitch. --- src/components/HelpComponent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/HelpComponent.cpp b/src/components/HelpComponent.cpp index 984652887..6cd83710e 100644 --- a/src/components/HelpComponent.cpp +++ b/src/components/HelpComponent.cpp @@ -63,7 +63,7 @@ void HelpComponent::updateGrid() std::vector< std::shared_ptr > labels; float width = 0; - const float height = font->getLetterHeight() * 1.25f; + const float height = round(font->getLetterHeight() * 1.25f); for(auto it = mPrompts.begin(); it != mPrompts.end(); it++) { auto icon = std::make_shared(mWindow);