canvas on macOS has no reset() method

This commit is contained in:
Skyler Lehmkuhl 2024-12-05 13:12:21 -05:00
parent ad17f2531e
commit 9aa32446cc
1 changed files with 2 additions and 1 deletions

View File

@ -2712,7 +2712,8 @@ function updateLayout(element) {
function updateUI() { function updateUI() {
for (let canvas of canvases) { for (let canvas of canvases) {
let ctx = canvas.getContext("2d") let ctx = canvas.getContext("2d")
ctx.reset(); ctx.resetTransform();
ctx.beginPath()
ctx.fillStyle = "white" ctx.fillStyle = "white"
ctx.fillRect(0,0,canvas.width,canvas.height) ctx.fillRect(0,0,canvas.width,canvas.height)