[planetblupi] 45/61: Disable the pause when the window is deactivated (debug)

Didier Raboud odyx at moszumanska.debian.org
Thu Nov 2 19:24:59 UTC 2017


This is an automated email from the git hooks/post-receive script.

odyx pushed a commit to branch debian/master
in repository planetblupi.

commit 6e7947b7be622fe77de633bfc69785cdb89c40fd
Author: Mathieu Schroeter <mathieu at schroetersa.ch>
Date:   Mon Oct 30 17:36:28 2017 +0100

    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;
   }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/planetblupi.git



More information about the Pkg-games-commits mailing list