summaryrefslogtreecommitdiff
path: root/src/hud.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/hud.cpp')
-rw-r--r--src/hud.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/hud.cpp b/src/hud.cpp
index d72141899..a7d94cb84 100644
--- a/src/hud.cpp
+++ b/src/hud.cpp
@@ -214,7 +214,8 @@ void Hud::drawItems(v2s32 upperleftpos, v2s32 screen_offset, s32 itemcount,
// Position of upper left corner of bar
v2s32 pos = upperleftpos + screen_offset;
- pos *= m_hud_scaling * porting::getDisplayDensity();
+ pos.X *= m_hud_scaling * porting::getDisplayDensity();
+ pos.Y *= m_hud_scaling * porting::getDisplayDensity();
if (hotbar_image != player->hotbar_image) {
hotbar_image = player->hotbar_image;