images appear to be starting to display
This commit is contained in:
parent
9758b0dcb1
commit
259974ca87
|
@ -27,7 +27,7 @@ var bigBang = function(MACHINE, initW, handlers) {
|
||||||
|
|
||||||
var oldArgcount = MACHINE.argcount;
|
var oldArgcount = MACHINE.argcount;
|
||||||
|
|
||||||
var toplevelNode = $('<div/>').css('border', '1px solid black').appendTo(document.body).get(0);
|
var toplevelNode = $('<span/>').css('border', '0px').appendTo(document.body).get(0);
|
||||||
|
|
||||||
var configs = [];
|
var configs = [];
|
||||||
var isOutputConfigSeen = false;
|
var isOutputConfigSeen = false;
|
||||||
|
@ -209,8 +209,12 @@ ToDraw.prototype.toRawHandler = function(MACHINE, toplevelNode) {
|
||||||
reusableCanvas.jsworldOpaque = true;
|
reusableCanvas.jsworldOpaque = true;
|
||||||
reusableCanvasNode = rawJsworld.node_to_tree(reusableCanvas);
|
reusableCanvasNode = rawJsworld.node_to_tree(reusableCanvas);
|
||||||
}
|
}
|
||||||
reusableCanvas.width = width;
|
if (reusableCanvas.width !== width) {
|
||||||
reusableCanvas.height = height;
|
reusableCanvas.width = width;
|
||||||
|
}
|
||||||
|
if (reusableCanvas.height !== height) {
|
||||||
|
reusableCanvas.height = height;
|
||||||
|
}
|
||||||
var ctx = reusableCanvas.getContext("2d");
|
var ctx = reusableCanvas.getContext("2d");
|
||||||
v.render(ctx, 0, 0);
|
v.render(ctx, 0, 0);
|
||||||
success([toplevelNode, reusableCanvasNode]);
|
success([toplevelNode, reusableCanvasNode]);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user