Pad frame indices in TAStudio to 5 digits from the start

This commit is contained in:
YoshiRulz 2025-02-13 08:39:44 +10:00
parent fbd45915cb
commit 69a938f29b
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 3 additions and 1 deletions

View File

@ -296,7 +296,9 @@ namespace BizHawk.Client.EmuHawk
/// <returns><paramref name="index"/> with leading zeroes such that every frame in the movie will be printed with the same number of digits</returns>
private string FrameToStringPadded(int index)
=> index.ToString(_formatCache[NumberExtensions.Log10(Math.Max(CurrentTasMovie.InputLogLength, 1))]);
=> index.ToString(_formatCache[Math.Max(
4,
NumberExtensions.Log10(Math.Max(CurrentTasMovie.InputLogLength, 1)))]);
private void TasView_QueryItemText(int index, RollColumn column, out string text, ref int offsetX, ref int offsetY)
{