1
0
Fork 0
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:
Maksim 2020-06-05 21:42:33 +02:00 committed by GitHub
parent 08c0b7696a
commit 7ec0e3df35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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;