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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarMainInterface.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-23 19:01:22 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-23 19:01:22 +1000
commit02c26961346a83b52c220102c7edd3c5ffe2a067 (patch)
treed67bc0a094b259a898dc67ac553cfe86a544bdc8 /source/frontend/StarMainInterface.cpp
parentfa5042902cf461abe541c8be472599782102cf1c (diff)
Hide the hardware cursor when in a cinematic
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 a3338ee..4f40694 100644
--- a/source/frontend/StarMainInterface.cpp
+++ b/source/frontend/StarMainInterface.cpp
@@ -1368,7 +1368,7 @@ void MainInterface::updateCursor() {
void MainInterface::renderCursor() {
// if we're currently playing a cinematic, we should not render the mouse.
if (m_cinematicOverlay && !m_cinematicOverlay->completed())
- return;
+ return m_guiContext->applicationController()->setCursorVisible(false);
m_cursor.update(WorldTimestep);