Do not draw in UpdateGame
This commit is contained in:
1 parent
f64f7640e3
commit
050d4bd8be
1 file changed
+10
-11
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user