mirror of
https://github.com/luanti-org/luanti.git
synced 2025-07-27 17:28:41 +00:00
Fix HUD scaling (#9721)
This resolves HUD scaling issues on Android and desktops with custom DPI settings.
This commit is contained in:
parent
08c0b7696a
commit
7ec0e3df35
2 changed files with 44 additions and 22 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue