Skip to content

Commit

Permalink
HUD: Fix wrong minimum scale since 051181f
Browse files Browse the repository at this point in the history
Caused by wrong interpretation of the settingtypes.txt format
  • Loading branch information
SmallJoker committed Jul 31, 2022
1 parent a871115 commit c14b753
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/hud.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c14b753

Please sign in to comment.