From 6aeb32bd611ae9b2d3e1e572b8b88b7f22cd092f Mon Sep 17 00:00:00 2001 From: oc Date: Mon, 17 Dec 2018 22:36:13 +0800 Subject: [PATCH] Fix Bug --- libs/events.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/libs/events.js b/libs/events.js index 4e7574b0..b7bb1bd6 100644 --- a/libs/events.js +++ b/libs/events.js @@ -1591,13 +1591,7 @@ events.prototype.showImage = function (code, image, x, y, dw, dh, opacityVal, ti var zIndex = code + 100; time = time || 0; var name = "image"+ zIndex; - if (core.findCanvas(name) != -1) { - core.relocateCanvas(name, x, y); - core.resizeCanvas(name, image.width * dw, image.height * dh); - core.dymCanvas[name].style.zIndex = zIndex; - } - else - core.createCanvas(name, x, y, image.width * dw, image.height * dh, zIndex); + core.createCanvas(name, x, y, image.width * dw, image.height * dh, zIndex); core.dymCanvas[name].drawImage(image, 0, 0, image.width * dw, image.height * dh); if (time == 0)