mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Fix hotbar placement on displays with low screen density
This commit is contained in:
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;
|
||||||
|
Loading…
Reference in New Issue
Block a user