diff options
| author | Maksim <MoNTE48@mail.ua> | 2020-06-05 21:42:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-06-05 21:42:33 +0200 |
| commit | 7ec0e3df35a11b66b48eababf0123170f2453a50 (patch) | |
| tree | 64d680d038326500b5c414d136b0c1bcf277e9ad /src/client/hud.h | |
| parent | 08c0b7696a8b15759c8fc203cc90fde21c2c76a9 (diff) | |
| download | dragonfireclient-7ec0e3df35a11b66b48eababf0123170f2453a50.tar.xz | |
Fix HUD scaling (#9721)
This resolves HUD scaling issues on Android and desktops with custom DPI settings.
Diffstat (limited to 'src/client/hud.h')
| -rw-r--r-- | src/client/hud.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/hud.h b/src/client/hud.h index e2abf326c..6f4c54626 100644 --- a/src/client/hud.h +++ b/src/client/hud.h @@ -92,6 +92,7 @@ private: void drawItem(const ItemStack &item, const core::rect<s32> &rect, bool selected); float m_hud_scaling; // cached minetest setting + float m_scale_factor; v3s16 m_camera_offset; v2u32 m_screensize; v2s32 m_displaycenter; |
