Permalink
Browse files

fixed screensavers other than dim/black

  • Loading branch information...
1 parent 19e8cb6 commit c806d12fca144141340ffee3653a092d3ba5514d Jonathan Marshall committed Jun 18, 2011
Showing with 8 additions and 0 deletions.
  1. +7 −0 xbmc/windows/GUIWindowScreensaver.cpp
  2. +1 −0 xbmc/windows/GUIWindowScreensaver.h
View
7 xbmc/windows/GUIWindowScreensaver.cpp
@@ -40,6 +40,13 @@ CGUIWindowScreensaver::~CGUIWindowScreensaver(void)
{
}
+void CGUIWindowScreensaver::Process(unsigned int currentTime, CDirtyRegionList &regions)
+{
+ MarkDirtyRegion();
+ CGUIWindow::Process(currentTime, regions);
+ m_renderRegion.SetRect(0, 0, (float)g_graphicsContext.GetWidth(), (float)g_graphicsContext.GetHeight());
+}
+
void CGUIWindowScreensaver::Render()
{
CSingleLock lock (m_critSection);
View
1 xbmc/windows/GUIWindowScreensaver.h
@@ -41,6 +41,7 @@ class CGUIWindowScreensaver : public CGUIWindow
virtual bool OnMessage(CGUIMessage& message);
virtual bool OnAction(const CAction &action);
virtual void Render();
+ virtual void Process(unsigned int currentTime, CDirtyRegionList &regions);
protected:
virtual EVENT_RESULT OnMouseEvent(const CPoint &point, const CMouseEvent &event);

0 comments on commit c806d12

Please sign in to comment.