Skip to content

Commit

Permalink
Merge pull request xbmc#6411 from mgehre/dpms_no_render
Browse files Browse the repository at this point in the history
Do not render when dpms is active
  • Loading branch information
mkortstiege committed Feb 14, 2015
2 parents 824a11d + 5a19826 commit b9470ca
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion xbmc/Application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2004,7 +2004,7 @@ void CApplication::Render()

{
// Less fps in DPMS
bool lowfps = m_dpmsIsActive || g_Windowing.EnableFrameLimiter();
bool lowfps = g_Windowing.EnableFrameLimiter();

m_bPresentFrame = false;
if (!extPlayerActive && g_graphicsContext.IsFullScreenVideo() && !m_pPlayer->IsPausedPlayback())
Expand Down Expand Up @@ -3886,6 +3886,7 @@ bool CApplication::ToggleDPMS(bool manual)
{
m_dpmsIsActive = false;
m_dpmsIsManual = false;
SetRenderGUI(true);
CAnnouncementManager::Get().Announce(GUI, "xbmc", "OnDPMSDeactivated");
return m_dpms->DisablePowerSaving();
}
Expand All @@ -3895,6 +3896,7 @@ bool CApplication::ToggleDPMS(bool manual)
{
m_dpmsIsActive = true;
m_dpmsIsManual = manual;
SetRenderGUI(false);
CAnnouncementManager::Get().Announce(GUI, "xbmc", "OnDPMSActivated");
return true;
}
Expand Down

0 comments on commit b9470ca

Please sign in to comment.