1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 00:25:19 +02:00

Fix HUD scaling (#9721)

This resolves HUD scaling issues on Android and desktops with custom DPI settings.
This commit is contained in:
Maksim
2020-06-05 21:42:33 +02:00
committed by GitHub
parent 08c0b7696a
commit 7ec0e3df35
2 changed files with 44 additions and 22 deletions

View File

@@ -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;