mirror of
https://gitlab.bixilon.de/bixilon/minosoft.git
synced 2025-09-17 03:15:35 -04:00
fix build
This commit is contained in:
parent
8862e665cc
commit
451beb024b
@ -19,7 +19,6 @@ import de.bixilon.minosoft.assets.AssetsManager
|
||||
import de.bixilon.minosoft.config.profile.delegate.watcher.SimpleProfileDelegateWatcher.Companion.profileWatchRendering
|
||||
import de.bixilon.minosoft.config.profile.profiles.rendering.RenderingProfile
|
||||
import de.bixilon.minosoft.gui.rendering.RenderWindow
|
||||
import de.bixilon.minosoft.gui.rendering.events.WindowCloseEvent
|
||||
import de.bixilon.minosoft.terminal.RunConfiguration
|
||||
import de.bixilon.minosoft.util.KUtil.toResourceLocation
|
||||
import de.matthiasmann.twl.utils.PNGDecoder
|
||||
@ -66,12 +65,7 @@ interface BaseWindow {
|
||||
|
||||
fun destroy()
|
||||
|
||||
fun close() {
|
||||
if (fireGLFWEvent(WindowCloseEvent(renderWindow, window = this))) {
|
||||
return
|
||||
}
|
||||
forceClose()
|
||||
}
|
||||
fun close()
|
||||
|
||||
fun forceClose()
|
||||
|
||||
|
@ -247,6 +247,13 @@ class GLFWWindow(
|
||||
glfwSetErrorCallback(null)?.free()
|
||||
}
|
||||
|
||||
override fun close() {
|
||||
if (fireGLFWEvent(WindowCloseEvent(renderWindow, window = this))) {
|
||||
return
|
||||
}
|
||||
forceClose()
|
||||
}
|
||||
|
||||
override fun forceClose() {
|
||||
glfwSetWindowShouldClose(window, true)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user