From 0b8f67115eb9e529971678f5e0eb8ebfa8e58e9d Mon Sep 17 00:00:00 2001 From: MoyuScript <i@moyu.moe> Date: Tue, 12 Nov 2013 19:34:20 +0200 Subject: [PATCH] Fix missing background color bug --- src/renderers/Canvas.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderers/Canvas.js b/src/renderers/Canvas.js index ebebeba..30b0f58 100644 --- a/src/renderers/Canvas.js +++ b/src/renderers/Canvas.js @@ -76,7 +76,7 @@ _html2canvas.Renderer.Canvas = function(options) { canvas.height = canvas.style.height = options.height || zStack.ctx.height; fstyle = ctx.fillStyle; - ctx.fillStyle = (Util.isTransparent(zStack.backgroundColor) && options.background !== undefined) ? options.background : parsedData.backgroundColor; + ctx.fillStyle = (Util.isTransparent(parsedData.backgroundColor) && options.background !== undefined) ? options.background : parsedData.backgroundColor; ctx.fillRect(0, 0, canvas.width, canvas.height); ctx.fillStyle = fstyle;