[win32] Fix: CWinIdleTimer::StartZero - do not set ES_SYSTEM_REQUIRED and ES_DISPLAY_...
authorAnton Fedchin <afedchin@ruswizards.com>
Tue, 5 May 2015 12:41:34 +0000 (15:41 +0300)
committerAnton Fedchin <afedchin@ruswizards.com>
Thu, 7 May 2015 13:02:27 +0000 (16:02 +0300)
xbmc/win32/WIN32Util.cpp

index 89755a1..24403cd 100644 (file)
@@ -1520,7 +1520,8 @@ void CWIN32Util::CropSource(CRect& src, CRect& dst, CRect target)
 
 void CWinIdleTimer::StartZero()
 {
-  SetThreadExecutionState(ES_SYSTEM_REQUIRED|ES_DISPLAY_REQUIRED);
+  if (!g_application.IsDPMSActive())
+    SetThreadExecutionState(ES_SYSTEM_REQUIRED|ES_DISPLAY_REQUIRED);
   CStopWatch::StartZero();
 }