mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Fix inventory hud scaling
This commit is contained in:
parent
4fdf66bbf4
commit
b5f6d41eed
2 changed files with 14 additions and 10 deletions
|
@ -154,12 +154,12 @@ private:
|
|||
void drawItem(const ItemStack &item, const core::rect<s32>& rect,
|
||||
bool selected);
|
||||
|
||||
float m_hud_scaling;
|
||||
float m_hud_scaling; // cached minetest setting
|
||||
v3s16 m_camera_offset;
|
||||
v2u32 m_screensize;
|
||||
v2s32 m_displaycenter;
|
||||
s32 m_hotbar_imagesize;
|
||||
s32 m_padding;
|
||||
s32 m_hotbar_imagesize; // Takes hud_scaling into account, updated by resizeHotbar()
|
||||
s32 m_padding; // Takes hud_scaling into account, updated by resizeHotbar()
|
||||
video::SColor hbar_colors[4];
|
||||
|
||||
std::vector<aabb3f> m_selection_boxes;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue