projects
/
oweals
/
minetest.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3b43e7e
)
Fix hotbar placement on displays with low screen density
author
PilzAdam
<pilzadam@minetest.net>
Mon, 11 Apr 2016 21:04:42 +0000
(23:04 +0200)
committer
PilzAdam
<pilzadam@minetest.net>
Mon, 11 Apr 2016 21:04:42 +0000
(23:04 +0200)
src/hud.cpp
patch
|
blob
|
history
diff --git
a/src/hud.cpp
b/src/hud.cpp
index d72141899afd63b391d7e124eb0228fdaad00684..a7d94cb842173d5ad38f6d80b377b3be7c1fa46f 100644
(file)
--- 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;