All pastes #1940840 Raw Edit

Miscellany

public diff v1 · immutable
#1940840 ·published 2010-09-14 19:45 UTC
rendered paste body
Index: src/main.cpp===================================================================--- src/main.cpp	(revision 8474)+++ src/main.cpp	(working copy)@@ -255,21 +255,27 @@  bool AppWormux::CheckInactive(SDL_Event& event) {+  bool pause_all = false;+#ifdef MAEMO+  pause_all = true;+  if (event.type==SDL_ACTIVEEVENT&&SDL_APPACTIVE) {+#else   if (event.type==SDL_ACTIVEEVENT && event.active.state&SDL_APPACTIVE) {+#endif     if (Network::IsConnected()) {       switch (event.active.gain) {-      case 0: JukeBox::GetInstance()->Pause(); return true;-      case 1: JukeBox::GetInstance()->Resume(); return true;+      case 0: JukeBox::GetInstance()->Pause(pause_all); return true;+      case 1: JukeBox::GetInstance()->Resume(pause_all); return true;       default: break;       }     }     else if (event.active.gain == 0) {-      JukeBox::GetInstance()->Pause();+      JukeBox::GetInstance()->Pause(pause_all);       Time::GetInstance()->SetWaitingForUser(true);       while (SDL_WaitEvent(&event)) {         if (event.type == SDL_QUIT) AppWormux::EmergencyExit();         if (event.type == SDL_ACTIVEEVENT && event.active.gain == 1) {-          JukeBox::GetInstance()->Resume();+          JukeBox::GetInstance()->Resume(pause_all);           Time::GetInstance()->SetWaitingForUser(false);           break;         }