mirror of
https://github.com/viliusle/miniPaint.git
synced 2026-02-06 15:16:44 +00:00
#64 - update to sending image to editor
This commit is contained in:
parent
95e15c4a62
commit
0d013ea461
@ -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) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user