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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 01:04:58 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-27 01:04:58 +1000
commit4e6e342169e2dc8f86960bc31840e3a3b281814a (patch)
tree6b327e196879fbdb85ef512e593fb42b7ed1f57f /source/frontend/StarMainInterface.cpp
parent63b68b3a55a11b32b07e7b8bdbf3760722d5e7f9 (diff)
Improve AssetPath::split
also fixed a bug with the cursor changes
Diffstat (limited to 'source/frontend/StarMainInterface.cpp')
-rw-r--r--source/frontend/StarMainInterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp
index 6c29587..cc09895 100644
--- a/source/frontend/StarMainInterface.cpp
+++ b/source/frontend/StarMainInterface.cpp
@@ -1407,7 +1407,7 @@ void MainInterface::renderCursor() {
VerticalAnchor::VMidAnchor));
}
- m_cursorItem->setPosition(m_cursorScreenPos / cursorScale + m_config->inventoryItemMouseOffset);
+ m_cursorItem->setPosition(m_cursorScreenPos / interfaceScale() + m_config->inventoryItemMouseOffset);
if (auto swapItem = m_client->mainPlayer()->inventory()->swapSlotItem())
m_cursorItem->setItem(swapItem);