Fix missing background color bug

This commit is contained in:
Niklas von Hertzen 2013-11-12 19:34:20 +02:00
parent 35c5ca3340
commit 57d20a9794

View File

@ -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;