Skip to content

Commit

Permalink
fix compile errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Aug 27, 2024
1 parent 97f0834 commit 94de9a3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"radio": "*",
"microphone": "*",
"datalogger": "*",
"arcadeshield": "github:microsoft/pxt-arcadeshield#v0.0.8",
"pxt-arcadeshield": "github:microsoft/pxt-arcadeshield#8b0e31213a5d04e18c758fa83b38d802ace40856",
"jacdac": "github:microsoft/pxt-jacdac#v1.9.28",
"jacdac-light-level": "github:microsoft/pxt-jacdac/light-level#v1.9.28",
"jacdac-soil-moisture": "github:microsoft/pxt-jacdac/tree/master/soil-moisture#v1.9.28",
Expand Down
2 changes: 1 addition & 1 deletion scene.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ namespace microcode {
this.draw()
if (Options.fps)
Screen.image.print(context.EventContext.lastStats, 1, 1, 15)
if (screen !== Screen.image)
if (screen() !== Screen.image)
screen().drawBitmap(Screen.image, 0, 0)
})
context.eventContext().registerFrameHandler(SCREEN_PRIORITY, () => {
Expand Down
4 changes: 2 additions & 2 deletions screen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,13 +45,13 @@
}
public static get image(): Bitmap {
if (!Screen.image_) {
Screen.image_ = screen
Screen.image_ = screen()
Screen.updateBounds()
}
return Screen.image_
}
public static resetScreenImage() {
Screen.image_ = screen
Screen.image_ = screen()
Screen.updateBounds()
}

Expand Down

0 comments on commit 94de9a3

Please sign in to comment.