Skip to content

Commit

Permalink
Reformat line to fix weird indentation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
Rian8337 committed Jan 25, 2025
1 parent b5bc690 commit e2e3605
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/com/reco1l/andengine/text/ExtendedText.kt
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ open class ExtendedText : ExtendedEntity() {
var text: String = ""
set(value) {
if (field != value) {
field = value
field = value

if (value.length > maximumSize) {
shouldRebuildVertexBuffer = true
shouldRebuildTextureBuffer = true
}

updateVertexBuffer()
}
}
}

/**
Expand All @@ -47,17 +47,17 @@ open class ExtendedText : ExtendedEntity() {
var font: Font? = null
set(value) {
if (field != value) {
field = value
field = value
shouldRebuildTextureBuffer = true
updateVertexBuffer()
}
}
}

/**
* The horizontal alignment of the text.
*/
var horizontalAlign = HorizontalAlign.LEFT
set(value) {
set(value) {
if (field != value) {
field = value
updateVertexBuffer()
Expand Down Expand Up @@ -108,8 +108,8 @@ open class ExtendedText : ExtendedEntity() {
currentSize = text.length

if (text.length > maximumSize) {
shouldRebuildVertexBuffer = true
shouldRebuildTextureBuffer = true
shouldRebuildVertexBuffer = true
shouldRebuildTextureBuffer = true
maximumSize = text.length
}

Expand Down

0 comments on commit e2e3605

Please sign in to comment.