Merge pull request #484 from Vocaluxe/SongNameTextGAPCalculation

Improved calculation of first line for song name text
This commit is contained in:
daggeg authored and GitHub committed 2020-02-05 15:37:49 +01:00
commit 9c2e1ed229
1 file changed
+5 -1
+5 -1
View File
@@ -1187,7 +1187,11 @@ namespace Vocaluxe.Screens
_TimerDuetText1.Reset();
_TimerDuetText2.Reset();
float realGap = song.Gap - song.Start;
// Getting the real start of the first line from the first voice, no other voices are on top since #454.
// Needed for displaying song name on duet game mode or lyric on top settings (implemented with #455).
CVoice voice = song.Notes.GetVoice(0); // As long as only voice 0 is on top (no matter if duet or other modes).
CSongLine[] lines = voice.Lines;
float realGap = CGame.GetTimeFromBeats(lines[0].FirstNoteBeat, song.BPM) + (song.Gap - song.Start);
_TimeShowSongTextTotal = 10f;
if (_Lyrics[_LyricMainDuet].Visible || _Lyrics[_LyricMainTop].Visible)
{