aboutsummaryrefslogtreecommitdiff
path: root/guilib
diff options
context:
space:
mode:
authorjmarshallnz <jmarshallnz@svn>2010-07-28 01:49:43 +0000
committerjmarshallnz <jmarshallnz@svn>2010-07-28 01:49:43 +0000
commit9e82a0cfb612f0d949c5f602b2689c5cef919eac (patch)
treee8673062486f60f9726dc30c34f4db3ca433f5f8 /guilib
parent1e349540f6dfab22cac0b7bda6a7914c9de8adf5 (diff)
fixed: Ticket #9760 - Visualisations aren't reinit'd on fullscreen/windowed toggle
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@32239 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'guilib')
-rw-r--r--guilib/GUIVisualisationControl.cpp19
1 files changed, 12 insertions, 7 deletions
diff --git a/guilib/GUIVisualisationControl.cpp b/guilib/GUIVisualisationControl.cpp
index 74b29700d5..686f19172c 100644
--- a/guilib/GUIVisualisationControl.cpp
+++ b/guilib/GUIVisualisationControl.cpp
@@ -93,16 +93,21 @@ bool CGUIVisualisationControl::OnAction(const CAction &action)
void CGUIVisualisationControl::Render()
{
- if (!m_addon && g_application.IsPlayingAudio() && !m_bAttemptedLoad)
+ if (g_application.IsPlayingAudio())
{
- AddonPtr viz;
- if (ADDON::CAddonMgr::Get().GetDefault(ADDON_VIZ, viz))
- LoadAddon(viz);
+ if (m_bInvalidated)
+ FreeResources(true);
- m_bAttemptedLoad = true;
+ if (!m_addon && !m_bAttemptedLoad)
+ {
+ AddonPtr viz;
+ if (ADDON::CAddonMgr::Get().GetDefault(ADDON_VIZ, viz))
+ LoadAddon(viz);
+
+ m_bAttemptedLoad = true;
+ }
}
- else
- CGUIRenderingControl::Render();
+ CGUIRenderingControl::Render();
}
void CGUIVisualisationControl::FreeResources(bool immediately)