broadway: Start windows transparent rather than black

This avoids flashing
This commit is contained in:
Alexander Larsson 2011-03-14 16:04:34 +01:00
parent 084003953d
commit 63c0198347

View File

@ -100,7 +100,6 @@ function initContext(canvas, x, y, id)
canvas.style["display"] = "none"; canvas.style["display"] = "none";
var context = canvas.getContext("2d"); var context = canvas.getContext("2d");
context.globalCompositeOperation = "src-over"; context.globalCompositeOperation = "src-over";
context.fillRect(0, 0, canvas.width, canvas.height);
document.body.appendChild(canvas); document.body.appendChild(canvas);
return context; return context;