Fixed issue with low resolution exports
This commit is contained in:
parent
e4be214c1f
commit
23ed4b5b41
@ -12,7 +12,7 @@ function FileSave(rune)
|
|||||||
d = ronin.surface.layers["render"].element.toDataURL('image/png');
|
d = ronin.surface.layers["render"].element.toDataURL('image/png');
|
||||||
ronin.surface.layers["render"].clear();
|
ronin.surface.layers["render"].clear();
|
||||||
var w = window.open('about:blank','image from canvas');
|
var w = window.open('about:blank','image from canvas');
|
||||||
w.document.write("<title>"+(n ? n : "Untitled")+"</title><img src='"+d+"'/>");
|
w.document.write("<title>"+(n ? n : "Untitled")+"</title><img src='"+d+"' width='"+ronin.surface.size.width+"px' height='"+ronin.surface.size.height+"px'/>");
|
||||||
}
|
}
|
||||||
|
|
||||||
this.passive = function(cmd)
|
this.passive = function(cmd)
|
||||||
|
@ -114,7 +114,7 @@ function Surface(rune)
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
for (i = a.length; i > 0 ; i--) {
|
for (i = a.length; i > 0 ; i--) {
|
||||||
ronin.surface.render_layer.context().drawImage(a[i-1].context().canvas,0,0,this.size.width/2,this.size.height/2);
|
ronin.surface.render_layer.context().drawImage(a[i-1].context().canvas,0,0,this.size.width,this.size.height);
|
||||||
}
|
}
|
||||||
return this.render_layer;
|
return this.render_layer;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user