From 050d4bd8be0a5ef5bfe15fc6e016f3d2911a6693 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Mon, 5 Mar 2012 19:46:35 +0100 Subject: [PATCH] Do not draw in UpdateGame --- Vocaluxe/Screens/CPopupScreenPlayerControl.cs | 21 +++++++++---------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/Vocaluxe/Screens/CPopupScreenPlayerControl.cs b/Vocaluxe/Screens/CPopupScreenPlayerControl.cs index fc41a0c0..085ec6d1 100644 --- a/Vocaluxe/Screens/CPopupScreenPlayerControl.cs +++ b/Vocaluxe/Screens/CPopupScreenPlayerControl.cs @@ -136,17 +136,6 @@ namespace Vocaluxe.Screens Buttons[htButtons(ButtonPause)].Visible = CBackgroundMusic.IsPlaying(); Buttons[htButtons(ButtonPlay)].Visible = !CBackgroundMusic.IsPlaying(); Texts[htTexts(TextCurrentSong)].Text = CBackgroundMusic.GetSongArtistAndTitle(); - if (CBackgroundMusic.IsVideoEnabled() && CBackgroundMusic.HasVideo()) - { - CBackgroundMusic.UploadNewFrame(Statics[htStatics(StaticCover)]); - Statics[htStatics(StaticCover)].Visible = true; - } - else - { - Statics[htStatics(StaticCover)].Visible = true; - Statics[htStatics(StaticCover)].Texture = CBackgroundMusic.GetCover(); - } - return true; } @@ -160,6 +149,16 @@ namespace Vocaluxe.Screens { if (!_Active) return false; + if (CBackgroundMusic.IsVideoEnabled() && CBackgroundMusic.HasVideo()) + { + CBackgroundMusic.UploadNewFrame(Statics[htStatics(StaticCover)]); + Statics[htStatics(StaticCover)].Visible = false; + } + else + { + Statics[htStatics(StaticCover)].Visible = true; + Statics[htStatics(StaticCover)].Texture = CBackgroundMusic.GetCover(); + } return base.Draw(); }