Skip to content

Commit 64210df

Browse files
committed
shit
1 parent 7b2c2ef commit 64210df

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/main/kotlin/uno/glfw/GlfwWindow.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ open class GlfwWindow(var handle: Long) {
3939
position: Vec2i = Vec2i(Int.MIN_VALUE),
4040
installCallbacks: Boolean = true) : this(glfwCreateWindow(width, height, title, monitor, NULL)) {
4141

42-
this._title = title
42+
this.title = title
4343

4444
if (position != Vec2i(Int.MIN_VALUE))
4545
glfwSetWindowPos(handle, position.x, position.y)
@@ -74,12 +74,10 @@ open class GlfwWindow(var handle: Long) {
7474
get() = glfwWindowShouldClose(handle)
7575
set(value) = glfwSetWindowShouldClose(handle, value)
7676

77-
private var _title = ""
78-
var title: String
79-
get() = _title
77+
var title: String = ""
8078
set(value) {
8179
glfwSetWindowTitle(handle, value)
82-
_title = value
80+
field = value
8381
}
8482

8583
fun setSizeLimit(width: IntRange, height: IntRange) = glfwSetWindowSizeLimits(handle, width.start, height.start, width.endInclusive, height.endInclusive)

0 commit comments

Comments
 (0)