mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-14 09:56:37 -04:00
chat: don't draw half line (lines shifted when active)
This commit is contained in:
parent
2b62a8a069
commit
5e5463f6bb
@ -102,7 +102,7 @@ open class TextFlowElement(
|
|||||||
override fun forceSilentApply() {
|
override fun forceSilentApply() {
|
||||||
val visibleLines: MutableList<TextFlowLineElement> = mutableListOf()
|
val visibleLines: MutableList<TextFlowLineElement> = mutableListOf()
|
||||||
val maxSize = maxSize
|
val maxSize = maxSize
|
||||||
val maxLines = maxSize.y / (properties.lineHeight + properties.lineSpacing)
|
val maxLines = (maxSize.y / (properties.lineHeight + properties.lineSpacing)).toInt()
|
||||||
val currentTime = millis()
|
val currentTime = millis()
|
||||||
var textSize = Vec2.EMPTY
|
var textSize = Vec2.EMPTY
|
||||||
val active = this.active
|
val active = this.active
|
||||||
|
Loading…
x
Reference in New Issue
Block a user