mirror of
https://github.com/Haui1112/minetest.git
synced 2024-10-23 01:31:50 +02:00
HUD: Fix wrong minimum scale since 051181f
Caused by wrong interpretation of the settingtypes.txt format
This commit is contained in:
parent
a871115889
commit
c14b7536a4
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue