updated renderer

This commit is contained in:
Niklas von Hertzen 2012-12-27 23:07:00 +02:00
parent 582d10e00d
commit c9ed8d91fa
2 changed files with 2 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ node_modules/
.envrc
server.js
*.sublime-workspace
chromedriver.log

View File

@ -94,7 +94,7 @@ _html2canvas.Renderer.Canvas = function( options ) {
canvas.height = canvas.style.height = (!usingFlashcanvas) ? options.height || zStack.ctx.height : Math.min(flashMaxSize, (options.height || zStack.ctx.height) );
fstyle = ctx.fillStyle;
ctx.fillStyle = (zStack.backgroundColor === "transparent") ? "#fff" : zStack.backgroundColor;
ctx.fillStyle = (zStack.backgroundColor === "transparent" || zStack.backgroundColor === "rgba(0, 0, 0, 0)") ? "#fff" : zStack.backgroundColor;
ctx.fillRect(0, 0, canvas.width, canvas.height);
ctx.fillStyle = fstyle;