#64 - update to sending image to editor

This commit is contained in:
Vilius 2017-09-14 20:26:20 +03:00
parent 95e15c4a62
commit 0d013ea461

View File

@ -172,9 +172,18 @@ function FILE_CLASS() {
LAYER.layer_add(name);
LAYER.layer_remove(1);
if (img.width > WIDTH || img.height > HEIGHT) {
if (img.width > WIDTH)
WIDTH = img.width;
if (img.height > HEIGHT)
HEIGHT = img.height;
LAYER.set_canvas_size();
}
//draw canvas
canvas_active().drawImage(img, 0, 0);
IMAGE.trim();
GUI.zoom_auto(true);
};
this.open_handler = function (e) {