XInitThreads();
#endif
- // we start in frontend
- m_bInBackground = false;
/* for now always keep this around */
#ifdef HAS_KARAOKE
void CApplication::Render()
{
// do not render if we are stopped or in background
- if (m_bStop || m_bInBackground)
+ if (m_bStop)
return;
MEASURE_FUNCTION;
void CApplication::CheckScreenSaverAndDPMS()
{
- if (m_bInBackground)
- return;
if (!m_dpmsIsActive)
g_Windowing.ResetOSScreensaver();
g_windowManager.ActivateWindow(WINDOW_SCREENSAVER);
}
-void CApplication::SetInBackground(bool background)
-{
- if (!background)
- {
- ResetScreenSaverTimer();
- }
- m_bInBackground = background;
-}
-
void CApplication::CheckShutdown()
{
// first check if we should reset the timer
PlayState m_ePlayState;
CCriticalSection m_playStateMutex;
- bool m_bInBackground;
- inline bool IsInBackground() { return m_bInBackground; };
- void SetInBackground(bool background);
-
CKaraokeLyricsManager* m_pKaraokeMgr;
PLAYERCOREID m_eForcedNextPlayer;
{
PRINT_SIGNATURE();
pause = TRUE;
- g_application.SetInBackground(true);
+ g_application.SetRenderGUI(false);
}
//--------------------------------------------------------------
- (void) resumeAnimation
{
PRINT_SIGNATURE();
pause = FALSE;
- g_application.SetInBackground(false);
+ g_application.SetRenderGUI(true);
}
//--------------------------------------------------------------
- (void) startAnimation