Skip to content

Commit

Permalink
Merge pull request #20 from litan/master
Browse files Browse the repository at this point in the history
Roll back change to clear canvas on file open (this needs some more t…
  • Loading branch information
bulent2k2 authored Aug 3, 2023
2 parents 763f332 + b9f24bf commit 82f4614
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/main/scala/net/kogics/kojo/lite/KojoCtx.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

Expand Down
4 changes: 2 additions & 2 deletions src/main/scala/net/kogics/kojo/lite/Versions.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ class DrawingCanvasHolder(val dc: SpriteCanvas, ctx: KojoCtx)
dc.activate()
}
def clearCanvas(): Unit = {
dc.clear()
dc.forceClear()
}
}

0 comments on commit 82f4614

Please sign in to comment.