From 68bd850fe73819c75841c5b6147255caf16c6ed9 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Sun, 2 Jun 2024 14:31:25 +1000 Subject: [PATCH] scale planetNameOffset by interface scale that parameter was definitely not tested for other interface scales --- source/frontend/StarMainInterface.cpp | 1 + 1 file changed, 1 insertion(+) 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); }