- January 29, 2008
- 6
- 0
- Home Country
- United States of America
I've found the code below in MediaPortal.cs for disabling the screensaver. But the SC_SCREENSAVE message seems to be only called when MediaPortal is not in full screen mode. Does anybody know where the code is that says to disable the Windows screensaver while a video is playing in full screen mode?
Code:
if (msg.Msg == WM_SYSCOMMAND && msg.WParam.ToInt32() == SC_SCREENSAVE)
{
// windows wants to activate the screensaver
if ((GUIGraphicsContext.IsFullScreenVideo) ||
GUIWindowManager.ActiveWindow == (int)GUIWindow.Window.WINDOW_SLIDESHOW)
{
//disable it when we're watching tv/movies/...
msg.Result = new IntPtr(0);
return;
}
}