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

summaryrefslogtreecommitdiff
path: root/source/frontend/StarTitleScreen.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2023-06-23 18:13:26 +1000
committerKae <80987908+Novaenia@users.noreply.github.com>2023-06-23 18:13:26 +1000
commit176c79bada5f175202a1f67828a9d4bfc208895c (patch)
tree7487030ad4227dd1bd223d202d699a7400305bcf /source/frontend/StarTitleScreen.cpp
parentbab5f0bd1123034cce33e7519dbb33afbd04b081 (diff)
Hardware Cursor support
Updated SDL2 for this, so lib\ is no longer gitignored
Diffstat (limited to 'source/frontend/StarTitleScreen.cpp')
-rw-r--r--source/frontend/StarTitleScreen.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/source/frontend/StarTitleScreen.cpp b/source/frontend/StarTitleScreen.cpp
index 84790f0..4571f04 100644
--- a/source/frontend/StarTitleScreen.cpp
+++ b/source/frontend/StarTitleScreen.cpp
@@ -417,7 +417,8 @@ void TitleScreen::renderCursor() {
cursorPos[0] -= cursorOffset[0] * interfaceScale();
cursorPos[1] -= (cursorSize[1] - cursorOffset[1]) * interfaceScale();
- m_guiContext->drawDrawable(m_cursor.drawable(), Vec2F(cursorPos), interfaceScale());
+ if (!m_guiContext->trySetCursor(m_cursor.drawable(), cursorOffset, interfaceScale()))
+ m_guiContext->drawDrawable(m_cursor.drawable(), Vec2F(cursorPos), interfaceScale());
}
float TitleScreen::interfaceScale() const {