1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Revisit F6 statistics formatting (#13126)

This commit is contained in:
SmallJoker 2023-01-16 20:16:23 +01:00 committed by GitHub
parent a2a280691c
commit ecd6d61697
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 12 additions and 11 deletions

View file

@ -276,7 +276,7 @@ void GameUI::updateProfiler()
core::dimension2d<u32> size = m_guitext_profiler->getOverrideFont()->
getDimension(str.c_str());
core::position2di upper_left(6, 50);
core::position2di upper_left(6, m_guitext->getTextHeight() * 2.5f);
core::position2di lower_right = upper_left;
lower_right.X += size.Width + 10;
lower_right.Y += size.Height;