aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Common/UI/UIControl_MinecraftPlayer.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Minecraft.Client/Common/UI/UIControl_MinecraftPlayer.cpp')
-rw-r--r--Minecraft.Client/Common/UI/UIControl_MinecraftPlayer.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Minecraft.Client/Common/UI/UIControl_MinecraftPlayer.cpp b/Minecraft.Client/Common/UI/UIControl_MinecraftPlayer.cpp
index 3a18ed53..d0625bce 100644
--- a/Minecraft.Client/Common/UI/UIControl_MinecraftPlayer.cpp
+++ b/Minecraft.Client/Common/UI/UIControl_MinecraftPlayer.cpp
@@ -37,7 +37,8 @@ void UIControl_MinecraftPlayer::render(IggyCustomDrawCallbackRegion *region)
float xo = width/2;
float yo = height;
- glTranslatef(xo, yo - 7.0f, 50.0f);
+ // dynamic y offset according to region height
+ glTranslatef(xo, yo - (height / 9.0f), 50.0f);
float ss;