Fix alpha calculation for last sub line (release-0.4.1)
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:
1 parent
dd7be5c575
commit
919ab803d1
1 file changed
+2
-2
@@ -1114,7 +1114,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;
|
||||
|
||||
@@ -1371,4 +1371,4 @@ namespace Vocaluxe.Screens
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user