Fixed issue with low resolution exports

This commit is contained in:
Devine Lu Linvega 2016-12-26 15:42:09 -07:00
parent e4be214c1f
commit 23ed4b5b41
2 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ function FileSave(rune)
d = ronin.surface.layers["render"].element.toDataURL('image/png');
ronin.surface.layers["render"].clear();
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)

View File

@ -114,7 +114,7 @@ function Surface(rune)
}
});
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;
}