aboutsummaryrefslogtreecommitdiff
path: root/src/client/hud.cpp
diff options
context:
space:
mode:
authorSmallJoker <mk939@ymail.com>2022-07-31 14:57:19 +0200
committerSmallJoker <mk939@ymail.com>2022-07-31 14:57:19 +0200
commitc14b7536a460899701f7694dbf95225a39307b51 (patch)
tree93b03c88d2e818cef328dbea8340402ea8f40205 /src/client/hud.cpp
parenta8711158896d993e23d823f41ab086c3915c7d4e (diff)
downloadminetest-c14b7536a460899701f7694dbf95225a39307b51.tar.gz
minetest-c14b7536a460899701f7694dbf95225a39307b51.tar.bz2
minetest-c14b7536a460899701f7694dbf95225a39307b51.zip
HUD: Fix wrong minimum scale since 051181f
Caused by wrong interpretation of the settingtypes.txt format
Diffstat (limited to 'src/client/hud.cpp')
-rw-r--r--src/client/hud.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/hud.cpp b/src/client/hud.cpp
index c05ce76e8..c0c289608 100644
--- a/src/client/hud.cpp
+++ b/src/client/hud.cpp
@@ -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);