Просмотр исходного кода

#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 лет назад
Родитель
Сommit
f66b5306fe
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      gameplay/src/PlatformQNX.cpp

+ 2 - 1
gameplay/src/PlatformQNX.cpp

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