From de603befc5ea2cac73645620b65c4ea61ef33731 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89milie=20Feral?= Date: Fri, 10 Jan 2020 10:18:06 +0100 Subject: [PATCH] [ion] main_sdl: Update the static sNeedsRefresh when actually refreshing the screen --- ion/src/simulator/shared/main_sdl.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/ion/src/simulator/shared/main_sdl.cpp b/ion/src/simulator/shared/main_sdl.cpp index 78c3fa00a..ac714addb 100644 --- a/ion/src/simulator/shared/main_sdl.cpp +++ b/ion/src/simulator/shared/main_sdl.cpp @@ -140,6 +140,7 @@ void refresh() { Display::draw(sRenderer, &screenRect); #endif SDL_RenderPresent(sRenderer); + sNeedsRefresh = false; IonSimulatorCallbackDidRefresh(); }