Commit bfdec378 authored by Aloshi's avatar Aloshi

Fixed rounding in HelpComponent.

Floating point is a bitch.
parent 95e1d8c7
......@@ -63,7 +63,7 @@ void HelpComponent::updateGrid()
std::vector< std::shared_ptr<TextComponent> > 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<ImageComponent>(mWindow);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment