This commit is contained in:
Horis
2023-02-26 16:01:49 +08:00
parent 66e0f066ad
commit 77d304ff46

View File

@@ -266,9 +266,9 @@ object ChapterProvider {
}
}
val textLine = TextLine(isImage = true)
textLine.lineTop = durY
textLine.lineTop = durY + paddingTop
durY += height
textLine.lineBottom = durY
textLine.lineBottom = durY + paddingTop
val (start, end) = if (visibleWidth > width) {
val adjustWidth = (visibleWidth - width) / 2f
Pair(adjustWidth, adjustWidth + width)