修复进度条显示错误

This commit is contained in:
EillesWan 2022-06-19 01:36:52 +08:00
parent a6d7022f87
commit 0a640267ff

View File

@ -481,15 +481,15 @@ class midiConvert:
nowstr = pgsstyle
if ids[r'%%s'] == True:
nowstr = nowstr.replace(r'%%s', str(i + 1))
nowstr = nowstr.replace(r'%%s', str(allticks[i] + 1))
if ids[r'%%t'] == True:
nowstr = nowstr.replace(r'%%t', self.__score2time(i + 1))
nowstr = nowstr.replace(r'%%t', self.__score2time(allticks[i] + 1))
if ids[r'%%%'] == True:
nowstr = nowstr.replace(
r'%%%', str(int((i + 1) / allticks[-1] * 10000) / 100) + '%'
r'%%%', str(int((allticks[i] + 1) / allticks[-1] * 10000) / 100) + '%'
)
countof_s = int((i + 1) / allticks[-1] * pgblength)
countof_s = int((allticks[i] + 1) / allticks[-1] * pgblength)
titlenow = __replace(
nowstr,