Fix alpha calculation for last sub line

Sub line was displayed wrong, if the last lyric line has a bigger distance to the second last line. Alpha calculation for sub lines stopped one line to early and might be visible even if it shouldn't be.
This commit is contained in:
Stefan authored and GitHub committed 2020-02-09 20:01:03 +01:00
1 parent 81a9fcf710
commit 657a6cb67f
1 file changed
+1 -1
+1 -1
View File
@@ -1459,7 +1459,7 @@ namespace Vocaluxe.Screens
}
// sub
if (currentLineSub < lines.Length - 2)
if ((currentLineSub + 1) < lines.Length)
{
float diff = CGame.GetTimeFromBeats(lines[currentLineSub + 1].FirstNoteBeat, song.BPM) - currentTime;