canvas on macOS has no reset() method
This commit is contained in:
+2
-1
@@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user