From a1e428fafa61b98d5405914290f251978cd9ac31 Mon Sep 17 00:00:00 2001 From: Kae <80987908+Novaenia@users.noreply.github.com> Date: Wed, 28 Jun 2023 00:51:02 +1000 Subject: [PATCH] Fix cursor cleanup --- source/application/StarMainApplication_sdl.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/application/StarMainApplication_sdl.cpp b/source/application/StarMainApplication_sdl.cpp index 8c05508..d03e141 100644 --- a/source/application/StarMainApplication_sdl.cpp +++ b/source/application/StarMainApplication_sdl.cpp @@ -329,6 +329,8 @@ public: bool quit = false; while (true) { + cleanup(); + for (auto const& event : processEvents()) m_application->processInput(event); @@ -368,8 +370,6 @@ public: break; } - m_cursorCache.cleanup(); - int64_t spareMilliseconds = round(m_updateTicker.spareTime() * 1000); if (spareMilliseconds > 0) Thread::sleepPrecise(spareMilliseconds);