diff options
author | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-02 14:31:25 +1000 |
---|---|---|
committer | Kae <80987908+Novaenia@users.noreply.github.com> | 2024-06-02 14:31:25 +1000 |
commit | 68bd850fe73819c75841c5b6147255caf16c6ed9 (patch) | |
tree | b2453797244509884fc3692a6f01219b644d4125 /source/frontend/StarMainInterface.cpp | |
parent | 986db9cfc5a1c9015503b5366c65a377f8c8a259 (diff) |
scale planetNameOffset by interface scale
that parameter was definitely not tested for other interface scales
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-rw-r--r-- | source/frontend/StarMainInterface.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp index 9f0bc0d..f9e8d57 100644 --- a/source/frontend/StarMainInterface.cpp +++ b/source/frontend/StarMainInterface.cpp @@ -714,6 +714,7 @@ void MainInterface::update(float dt) { worldName = worldTemplate->worldName(); if (!worldName.empty()) { + m_planetText->parent()->setPosition(Vec2I(Vec2F(m_config->planetNameOffset) * (2.f / interfaceScale()))); m_planetText->setText(strf(m_config->planetNameFormatString.utf8Ptr(), worldName)); m_paneManager.displayRegisteredPane(MainInterfacePanes::PlanetText); } |