Fix hotbar placement on displays with low screen density

This commit is contained in:
PilzAdam 2016-04-11 23:04:42 +02:00
parent 3b43e7e87c
commit 73d4538d94

@ -214,7 +214,8 @@ void Hud::drawItems(v2s32 upperleftpos, v2s32 screen_offset, s32 itemcount,
// Position of upper left corner of bar // Position of upper left corner of bar
v2s32 pos = upperleftpos + screen_offset; 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) { if (hotbar_image != player->hotbar_image) {
hotbar_image = player->hotbar_image; hotbar_image = player->hotbar_image;