Where is the screensaver being disabled? (1 Viewer)

OdieGiblet

Portal Member
January 29, 2008
6
0
Home Country
United States of America 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;
        }
      }
 

OdieGiblet

Portal Member
January 29, 2008
6
0
Home Country
United States of America United States of America
Great thanks! I'll check it out when I get home. But my intention is not actually to disable the screensaver as Media Portal is disabling it fine. All I really want is for my screensaver to be re-enabled when the video is paused. Does your plugin do this?
 

Users who are viewing this thread

Top Bottom