Fixed rounding in HelpComponent.

Floating point is a bitch.
This commit is contained in:
Aloshi 2014-05-16 16:26:11 -05:00
parent 95e1d8c7d8
commit bfdec378b8

View file

@ -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);