From b7d14f5516998b3f3260c29709bd791b17a41f45 Mon Sep 17 00:00:00 2001 From: Florian Kuepper Date: Fri, 7 Sep 2012 14:34:12 +0200 Subject: [PATCH] Fix bug of overlapping texts and statics in playlist-element. --- Vocaluxe/Menu/CObjectInteractions.cs | 19 +++++++++++++++++++ Vocaluxe/Menu/CPlaylist.cs | 1 + 2 files changed, 20 insertions(+) diff --git a/Vocaluxe/Menu/CObjectInteractions.cs b/Vocaluxe/Menu/CObjectInteractions.cs index 30dd279c..854d5fd9 100644 --- a/Vocaluxe/Menu/CObjectInteractions.cs +++ b/Vocaluxe/Menu/CObjectInteractions.cs @@ -65,6 +65,25 @@ namespace Vocaluxe.Menu Active = false; _ScreenArea = new SRectF(0f, 0f, CSettings.iRenderW, CSettings.iRenderH, 0f); } + + public void Clear() + { + _Interactions.Clear(); + _Statics.Clear(); + _Texts.Clear(); + _Buttons.Clear(); + _SelectSlides.Clear(); + + _Selection = 0; + + _PrevMouseX = 0; + _PrevMouseY = 0; + + _MouseDX = 0; + _MouseDY = 0; + + Active = false; + } #region GetLists public List GetButtons() { diff --git a/Vocaluxe/Menu/CPlaylist.cs b/Vocaluxe/Menu/CPlaylist.cs index a2017c49..f00d7663 100644 --- a/Vocaluxe/Menu/CPlaylist.cs +++ b/Vocaluxe/Menu/CPlaylist.cs @@ -129,6 +129,7 @@ namespace Vocaluxe.Menu public void Init() { + _Interactions.Clear(); PrepareList(); _Interactions.AddText(_Theme.TextPlaylistHeader); _Interactions.AddStatic(_Theme.StaticCover);