Pause background video when playing from videos from backgroundmusic
This commit is contained in:
1 parent
38e253821d
commit
7147e6d649
1 file changed
+6
@@ -138,9 +138,15 @@ namespace Vocaluxe.Menu
|
|||||||
{
|
{
|
||||||
bool ok = false;
|
bool ok = false;
|
||||||
if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON && CBackgroundMusic.VideoToBackgroundIsEnabled() && CBackgroundMusic.IsPlaying() && CBackgroundMusic.HasVideo())
|
if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON && CBackgroundMusic.VideoToBackgroundIsEnabled() && CBackgroundMusic.IsPlaying() && CBackgroundMusic.HasVideo())
|
||||||
|
{
|
||||||
|
Pause();
|
||||||
ok = DrawBackgroundMusicVideo();
|
ok = DrawBackgroundMusicVideo();
|
||||||
|
}
|
||||||
else if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON)
|
else if (_Theme.Type == EBackgroundTypes.Video && CConfig.VideoBackgrounds == EOffOn.TR_CONFIG_ON)
|
||||||
|
{
|
||||||
|
Resume();
|
||||||
ok = DrawVideo();
|
ok = DrawVideo();
|
||||||
|
}
|
||||||
|
|
||||||
if (_Theme.TextureName != String.Empty &&
|
if (_Theme.TextureName != String.Empty &&
|
||||||
(_Theme.Type == EBackgroundTypes.Texture ||
|
(_Theme.Type == EBackgroundTypes.Texture ||
|
||||||
|
|||||||
Reference in new issue
Block a user