aboutsummaryrefslogtreecommitdiff
path: root/guilib/GUIWindowManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'guilib/GUIWindowManager.cpp')
-rw-r--r--guilib/GUIWindowManager.cpp4
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;