From 73d4538d9463b349eedc767c47d1750a164e2b7b Mon Sep 17 00:00:00 2001 From: PilzAdam Date: Mon, 11 Apr 2016 23:04:42 +0200 Subject: Fix hotbar placement on displays with low screen density --- src/hud.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/hud.cpp') 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; -- cgit v1.2.3