mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-29 19:55:37 +00:00
Fixed rounding in HelpComponent.
Floating point is a bitch.
This commit is contained in:
parent
95e1d8c7d8
commit
bfdec378b8
|
@ -63,7 +63,7 @@ void HelpComponent::updateGrid()
|
||||||
std::vector< std::shared_ptr<TextComponent> > labels;
|
std::vector< std::shared_ptr<TextComponent> > labels;
|
||||||
|
|
||||||
float width = 0;
|
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++)
|
for(auto it = mPrompts.begin(); it != mPrompts.end(); it++)
|
||||||
{
|
{
|
||||||
auto icon = std::make_shared<ImageComponent>(mWindow);
|
auto icon = std::make_shared<ImageComponent>(mWindow);
|
||||||
|
|
Loading…
Reference in a new issue