Skip to content

Commit

Permalink
Roll back change to clear canvas on file open (this needs some more t…
Browse files Browse the repository at this point in the history
…hought).
  • Loading branch information
litan committed Aug 1, 2023
1 parent 366d252 commit b9f24bf
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 @@ -304,9 +304,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 @@ -19,6 +19,6 @@ class DrawingCanvasHolder(val dc: SpriteCanvas, ctx: KojoCtx)
}

def clearCanvas(): Unit = {
dc.clear()
dc.forceClear()
}
}

0 comments on commit b9f24bf

Please sign in to comment.