diff options
author | kwolekr <kwolekr@minetest.net> | 2016-04-10 23:51:36 -0400 |
---|---|---|
committer | kwolekr <kwolekr@minetest.net> | 2016-04-10 23:54:34 -0400 |
commit | 2eeb62057a9e08def6a0f013e3ca5d84768d1566 (patch) | |
tree | c96745f514b88655bc87f50d1e95bf57c7179c01 /src/hud.h | |
parent | eae33951ad8b13cb335fca8eaec73185959eb44e (diff) | |
download | minetest-2eeb62057a9e08def6a0f013e3ca5d84768d1566.tar.gz minetest-2eeb62057a9e08def6a0f013e3ca5d84768d1566.tar.bz2 minetest-2eeb62057a9e08def6a0f013e3ca5d84768d1566.zip |
Hud: Cache hud_scaling, fix minor style issues
Diffstat (limited to 'src/hud.h')
-rw-r--r-- | src/hud.h | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -148,13 +148,13 @@ private: void drawStatbar(v2s32 pos, u16 corner, u16 drawdir, std::string texture, s32 count, v2s32 offset, v2s32 size=v2s32()); - void drawItems(v2s32 upperleftpos, s32 itemcount, s32 inv_offset, - InventoryList *mainlist, u16 selectitem, u16 direction, - const v2s32 &offset = v2s32(0, 0)); + void drawItems(v2s32 upperleftpos, v2s32 screen_offset, s32 itemcount, + s32 inv_offset, InventoryList *mainlist, u16 selectitem, u16 direction); void drawItem(const ItemStack &item, const core::rect<s32>& rect, bool selected); + float m_hud_scaling; v3s16 m_camera_offset; v2u32 m_screensize; v2s32 m_displaycenter; |