diff --git a/src/main/scala/net/kogics/kojo/lite/KojoCtx.scala b/src/main/scala/net/kogics/kojo/lite/KojoCtx.scala index 1f2e22db..da944e4e 100644 --- a/src/main/scala/net/kogics/kojo/lite/KojoCtx.scala +++ b/src/main/scala/net/kogics/kojo/lite/KojoCtx.scala @@ -306,9 +306,9 @@ class KojoCtx(val subKojo: Boolean) extends core.KojoCtx { def fileOpened(file: File): Unit = { fileName = file.getName topcs.seh.fileOpened(fileName) - Utils.runAsyncQueued { - topcs.dch.clearCanvas() - } +// Utils.runAsyncQueued { +// topcs.dch.clearCanvas() +// } CloseFile.onFileOpen() } diff --git a/src/main/scala/net/kogics/kojo/lite/Versions.scala b/src/main/scala/net/kogics/kojo/lite/Versions.scala index af4d425c..c2a208dc 100644 --- a/src/main/scala/net/kogics/kojo/lite/Versions.scala +++ b/src/main/scala/net/kogics/kojo/lite/Versions.scala @@ -3,8 +3,8 @@ package net.kogics.kojo.lite object Versions { val KojoMajorVersion = "2.9" val KojoVersion = "2.9.25" - val KojoRevision = "r8" - val KojoBuildDate = "30 July 2023" + val KojoRevision = "r9" + val KojoBuildDate = "1 August 2023" val JavaVersion = { val jrv = System.getProperty("java.runtime.version") val arch = System.getProperty("os.arch") diff --git a/src/main/scala/net/kogics/kojo/lite/topc/DrawingCanvasHolder.scala b/src/main/scala/net/kogics/kojo/lite/topc/DrawingCanvasHolder.scala index 279f6eda..1d65ef4d 100644 --- a/src/main/scala/net/kogics/kojo/lite/topc/DrawingCanvasHolder.scala +++ b/src/main/scala/net/kogics/kojo/lite/topc/DrawingCanvasHolder.scala @@ -18,6 +18,6 @@ class DrawingCanvasHolder(val dc: SpriteCanvas, ctx: KojoCtx) dc.activate() } def clearCanvas(): Unit = { - dc.clear() + dc.forceClear() } }