From 88ae7d86c8d9e374a8ecb1e86ceb1cd2b4c60420 Mon Sep 17 00:00:00 2001 From: Stephan Sundermann Date: Mon, 5 Mar 2012 19:24:42 +0100 Subject: [PATCH] Some minor changes --- .../Screens/PopupScreenPlayerControl.xml | 52 +++++++++---------- Vocaluxe/Base/CBackgroundMusic.cs | 14 +---- 2 files changed, 28 insertions(+), 38 deletions(-) diff --git a/Output/Themes/Ambient/Screens/PopupScreenPlayerControl.xml b/Output/Themes/Ambient/Screens/PopupScreenPlayerControl.xml index 4b338b61..ea900e44 100644 --- a/Output/Themes/Ambient/Screens/PopupScreenPlayerControl.xml +++ b/Output/Themes/Ambient/Screens/PopupScreenPlayerControl.xml @@ -18,13 +18,29 @@ + + + CoverBackground + + 50 + 0 + 0,00 + 50 + 50 + + + Visible + + + + PreviousIcon PreviousIcon - 50 + 125 0 0,00 50 @@ -71,7 +87,7 @@ PlayIcon - 125 + 200 5 0,00 40 @@ -118,7 +134,7 @@ PauseIcon - 125 + 200 5 0,00 40 @@ -165,7 +181,7 @@ NextIcon - 190 + 265 0 0,00 50 @@ -212,7 +228,7 @@ RepeatIcon - 265 + 330 0 0,00 50 @@ -225,7 +241,7 @@ ButtonSColor - 265 + 405 25 32 @@ -259,7 +275,7 @@ VideoIcon - 315 + 405 0 0,00 50 @@ -306,7 +322,7 @@ DuetIcon - 380 + 480 0 0,00 50 @@ -349,14 +365,14 @@ - 465 + 555 0 0,00 50 - 825 + 725 StaticColor @@ -375,21 +391,5 @@ - - - CoverBackground - - 0 - 0 - 0,00 - 50 - 50 - - - Visible - - - - \ No newline at end of file diff --git a/Vocaluxe/Base/CBackgroundMusic.cs b/Vocaluxe/Base/CBackgroundMusic.cs index 50debf24..0daad6f6 100644 --- a/Vocaluxe/Base/CBackgroundMusic.cs +++ b/Vocaluxe/Base/CBackgroundMusic.cs @@ -155,6 +155,8 @@ namespace Vocaluxe.Base if (_AllFileNames.Count > 0 && _CurrentMusicStream != -1) { CSound.SetPosition(_CurrentMusicStream, 0); + if (_VideoEnabled) + LoadVideo(); } } @@ -321,11 +323,6 @@ namespace Vocaluxe.Base return _CurrentPlaylistElement.GetSongNr(); } - public static EAspect GetVideoAspect() - { - return _CurrentPlaylistElement.GetVideoAspect(); - } - public static bool IsDuet() { return _CurrentPlaylistElement.IsDuet(); @@ -371,7 +368,6 @@ class PlaylistElement float _VideoGap; int _SongNr; bool _Duet; - EAspect _VideoAspect; public PlaylistElement(CSong song) { @@ -383,7 +379,6 @@ class PlaylistElement _VideoGap = song.VideoGap; _SongNr = song.ID; _Duet = song.IsDuet; - _VideoAspect = song.VideoAspect; } public PlaylistElement(string FilePath) @@ -441,11 +436,6 @@ class PlaylistElement return _SongNr; } - public EAspect GetVideoAspect() - { - return _VideoAspect; - } - public bool IsDuet() { return _Duet;