Commit 7cbf4f34 by doszhang

dos

parent e82021ee
......@@ -481,7 +481,7 @@ function drawImage(ctx, myCanvas, img, imgInfo) {
ctx.translate(imgInfo.x, imgInfo.y);
ctx.rotate(Math.PI / 180 * imgInfo.rotation);
ctx.scale(imgInfo.scale, imgInfo.scale);
ctx.drawImage(img, -img.width * 2, -img.height * 2);
ctx.drawImage(img, -img.width / 2, -img.height / 2, img.width * 2, img.height * 2);
ctx.restore();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment