Browse Source

#424 -- Stop PlatformQNX from calling pause() every time a NAVIGATOR_WINDOW_THUMBNAIL or NAVIGATOR_WINDOW_INVISIBLE event occurs.
Only call pause() once, the first time the game is minimized.

Adam Blake 13 years ago
parent
commit
f66b5306fe
1 changed files with 2 additions and 1 deletions
  1. 2 1
      gameplay/src/PlatformQNX.cpp

+ 2 - 1
gameplay/src/PlatformQNX.cpp

@@ -1047,7 +1047,8 @@ int Platform::enterMessagePump()
                         break;
                     case NAVIGATOR_WINDOW_THUMBNAIL:
                     case NAVIGATOR_WINDOW_INVISIBLE:
-                        _game->pause();
+                        if (!suspended)
+                            _game->pause();
                         suspended = true;
                         break;
                     }