Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-06-02 14:31:25 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2024-06-02 14:31:25 +1000
commit68bd850fe73819c75841c5b6147255caf16c6ed9 (patch)
treeb2453797244509884fc3692a6f01219b644d4125 /source/frontend/StarMainInterface.cpp
parent986db9cfc5a1c9015503b5366c65a377f8c8a259 (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.cpp1
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);
}