From 176c79bada5f175202a1f67828a9d4bfc208895c Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Fri, 23 Jun 2023 18:13:26 +1000 Subject: Hardware Cursor support Updated SDL2 for this, so lib\ is no longer gitignored --- source/frontend/StarMainInterface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'source/frontend/StarMainInterface.cpp') diff --git a/source/frontend/StarMainInterface.cpp b/source/frontend/StarMainInterface.cpp index 2be8c2e..a3338ee 100644 --- a/source/frontend/StarMainInterface.cpp +++ b/source/frontend/StarMainInterface.cpp @@ -1377,7 +1377,8 @@ void MainInterface::renderCursor() { Vec2I cursorOffset = m_cursor.offset(); 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()); if (m_cursorTooltip) { auto assets = Root::singleton().assets(); -- cgit v1.2.3