From 6e7947b7be622fe77de633bfc69785cdb89c40fd Mon Sep 17 00:00:00 2001 From: Mathieu Schroeter Date: Mon, 30 Oct 2017 17:36:28 +0100 Subject: [PATCH] Disable the pause when the window is deactivated (debug) --- src/blupi.cxx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/blupi.cxx b/src/blupi.cxx index 8f9303a..1831bc3 100644 --- a/src/blupi.cxx +++ b/src/blupi.cxx @@ -315,8 +315,6 @@ FinishObjects (void) static void HandleEvent (const SDL_Event & event) { - Point totalDim, iconDim; - if (!g_pause && g_pEvent != nullptr && g_pEvent->TreatEvent (event)) return; @@ -324,6 +322,9 @@ HandleEvent (const SDL_Event & event) { case SDL_WINDOWEVENT: { +#ifndef DEBUG + Point totalDim, iconDim; + switch (event.window.event) { case SDL_WINDOWEVENT_FOCUS_GAINED: @@ -357,6 +358,7 @@ HandleEvent (const SDL_Event & event) g_pMovie->Pause (); return; } +#endif /* !DEBUG */ break; }