HUD: Fix wrong minimum scale since 051181f

Caused by wrong interpretation of the settingtypes.txt format
master
SmallJoker 2022-07-31 14:57:19 +02:00
parent a871115889
commit c14b7536a4
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ Hud::Hud(Client *client, LocalPlayer *player,
this->player = player;
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_hotbar_imagesize = std::floor(HOTBAR_IMAGE_SIZE *
RenderingEngine::getDisplayDensity() + 0.5f);