Skip to content

Commit

Permalink
Fix hotbar placement on displays with low screen density
Browse files Browse the repository at this point in the history
  • 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

@Fixer-007
Copy link
Contributor

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, https://i.imgur.com/jy2VbUU.png

Please sign in to comment.