summaryrefslogtreecommitdiff
path: root/src/hud.h
diff options
context:
space:
mode:
authorkwolekr <kwolekr@minetest.net>2016-04-10 23:51:36 -0400
committerkwolekr <kwolekr@minetest.net>2016-04-10 23:54:34 -0400
commit2eeb62057a9e08def6a0f013e3ca5d84768d1566 (patch)
treec96745f514b88655bc87f50d1e95bf57c7179c01 /src/hud.h
parenteae33951ad8b13cb335fca8eaec73185959eb44e (diff)
downloadminetest-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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/hud.h b/src/hud.h
index a28416a3c..0b69c58da 100644
--- a/src/hud.h
+++ b/src/hud.h
@@ -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;