Skip to content

Commit bde4afc

Browse files
committed
Update ImplJFX.kt
1 parent 716a6b1 commit bde4afc

File tree

1 file changed

+3
-5
lines changed
  • imgui-openjfx/src/main/kotlin/imgui/impl

1 file changed

+3
-5
lines changed

imgui-openjfx/src/main/kotlin/imgui/impl/ImplJFX.kt

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,12 @@ import javafx.scene.shape.FillRule
1919
import javafx.scene.shape.StrokeLineCap
2020
import javafx.scene.shape.StrokeLineJoin
2121
import javafx.stage.Stage
22-
import org.lwjgl.system.MemoryUtil.NULL
2322

2423
typealias JFXColor = javafx.scene.paint.Color
2524

26-
const val COLOR_SIZE_MASK = 0xFF
25+
private const val COLOR_SIZE_MASK = 0xFF
2726
//-1 is no multiplication (each pixel * 1.0 for each component, so the original)
28-
const val TEXTURE_COLOR_UNMULTIPLIED = -1
27+
private const val TEXTURE_COLOR_UNMULTIPLIED = -1
2928

3029
/**
3130
* Make this too small, and some barycentric items will be drawn that are inefficient to draw.
@@ -44,7 +43,6 @@ class ImplJFX(val stage: Stage, var canvas: Canvas) {
4443
private lateinit var charListener: EventHandler<KeyEvent>
4544

4645
private var mousePos = Vec2()
47-
private val mouseJustPressed = BooleanArray(5)
4846
private val mouseJustReleased = BooleanArray(io.mouseDown.size) { false }
4947

5048
private lateinit var r: Robot
@@ -130,7 +128,7 @@ class ImplJFX(val stage: Stage, var canvas: Canvas) {
130128
io.getClipboardTextFn = {
131129
Clipboard.getSystemClipboard().getContent(DataFormat.PLAIN_TEXT) as String
132130
}
133-
io.clipboardUserData = NULL
131+
io.clipboardUserData = 0L
134132

135133
val (pixels, size) = io.fonts.getTexDataAsAlpha8()
136134

0 commit comments

Comments
 (0)