HUD: Fix wrong minimum scale since 051181f

Caused by wrong interpretation of the settingtypes.txt format
This commit is contained in:
SmallJoker 2022-07-31 14:57:19 +02:00
parent a871115889
commit c14b7536a4

@ -55,7 +55,7 @@ Hud::Hud(Client *client, LocalPlayer *player,
this->player = player; this->player = player;
this->inventory = inventory; this->inventory = inventory;
m_hud_scaling = g_settings->getFloat("hud_scaling", 1.0f, 20.0f); m_hud_scaling = g_settings->getFloat("hud_scaling", 0.5f, 20.0f);
m_scale_factor = m_hud_scaling * RenderingEngine::getDisplayDensity(); m_scale_factor = m_hud_scaling * RenderingEngine::getDisplayDensity();
m_hotbar_imagesize = std::floor(HOTBAR_IMAGE_SIZE * m_hotbar_imagesize = std::floor(HOTBAR_IMAGE_SIZE *
RenderingEngine::getDisplayDensity() + 0.5f); RenderingEngine::getDisplayDensity() + 0.5f);