From 157dc9166bbb61a8da8644544e7f6ee529ce34e2 Mon Sep 17 00:00:00 2001 From: zhuzichu Date: Wed, 28 Jun 2023 09:45:47 +0800 Subject: [PATCH] update --- example/qml/window/MainWindow.qml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/qml/window/MainWindow.qml b/example/qml/window/MainWindow.qml index ab1f9dd5..1b38e5ce 100644 --- a/example/qml/window/MainWindow.qml +++ b/example/qml/window/MainWindow.qml @@ -240,12 +240,13 @@ CustomWindow { ctx.save() if(img_cache.source.toString().length!==0){ try{ - ctx.drawImage(img_cache, 0, 0, canvasSize.width, canvasSize.height, 0, 0, canvasSize.width, canvasSize.height) + ctx.drawImage(img_cache.source, 0, 0, canvasSize.width, canvasSize.height, 0, 0, canvasSize.width, canvasSize.height) }catch(e){ img_cache.source = "" } } clearArc(ctx, centerX, centerY, radius) + canvas.unloadImage(img_cache.source) ctx.restore() } function clearArc(ctx,x, y, radius, startAngle, endAngle) {