Pause background video when playing from videos from backgroundmusic

This commit is contained in:
Stephan Sundermann committed 2012-03-06 19:50:01 +01:00
1 parent 38e253821d
commit 7147e6d649
1 file changed
+6
+6
View File
@@ -138,9 +138,15 @@ namespace Vocaluxe.Menu
{
bool ok = false;
if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON && CBackgroundMusic.VideoToBackgroundIsEnabled() && CBackgroundMusic.IsPlaying() && CBackgroundMusic.HasVideo())
{
Pause();
ok = DrawBackgroundMusicVideo();
}
else if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON)
{
Resume();
ok = DrawVideo();
}
if (_Theme.TextureName != String.Empty &&
(_Theme.Type == EBackgroundTypes.Texture ||