diff options
author | jmarshallnz <jmarshallnz@svn> | 2010-06-06 23:50:32 +0000 |
---|---|---|
committer | jmarshallnz <jmarshallnz@svn> | 2010-06-06 23:50:32 +0000 |
commit | 73c4dbcd8052b88ea0b46504de3c3541f49e54ec (patch) | |
tree | 3b15a586383208639b18fbe441ab1fe2ab8d8862 /guilib/GUIWindowManager.cpp | |
parent | ccdde2fa1d7c946fdc9842ab5a909416a6553890 (diff) |
cleanup: Move clearing of screen into the windowmanager, and do it optionally based on each window. Currently always clears the screen except in fullscreen video
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@30879 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib/GUIWindowManager.cpp')
-rw-r--r-- | guilib/GUIWindowManager.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/guilib/GUIWindowManager.cpp b/guilib/GUIWindowManager.cpp index eb2c02fcef..7e82479d1d 100644 --- a/guilib/GUIWindowManager.cpp +++ b/guilib/GUIWindowManager.cpp @@ -489,7 +489,11 @@ void CGUIWindowManager::Render() CSingleLock lock(g_graphicsContext); CGUIWindow* pWindow = GetWindow(GetActiveWindow()); if (pWindow) + { + if (pWindow->NeedsClearBackground()) + g_graphicsContext.Clear(); pWindow->Render(); + } // we render the dialogs based on their render order. vector<CGUIWindow *> renderList = m_activeDialogs; |