canvas on macOS has no reset() method
This commit is contained in:
parent
ad17f2531e
commit
9aa32446cc
|
|
@ -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)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue