Skip to content


Browse files Browse the repository at this point in the history
Fix hotbar placement on displays with low screen density
  • Loading branch information
PilzAdam committed Apr 11, 2016
1 parent 3b43e7e commit 73d4538
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/hud.cpp
Expand Up @@ -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;
Expand Down

1 comment on commit 73d4538

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does not fix hud problem for me,

Please sign in to comment.