mirror of
https://github.com/lospec/pixel-editor.git
synced 2023-08-10 21:12:51 +03:00
Added canvas preview to layer menu
Decided to apply the same width / height ratio of the canvas to the preview.
This commit is contained in:
@@ -13,6 +13,8 @@ function HistoryStateEditCanvas () {
|
||||
|
||||
this.canvas = currentCanvas;
|
||||
redoStates.push(this);
|
||||
|
||||
currentLayer.updateLayerPreview();
|
||||
};
|
||||
|
||||
this.redo = function () {
|
||||
@@ -21,6 +23,8 @@ function HistoryStateEditCanvas () {
|
||||
|
||||
this.canvas = currentCanvas;
|
||||
undoStates.push(this);
|
||||
|
||||
currentLayer.updateLayerPreview();
|
||||
};
|
||||
|
||||
//add self to undo array
|
||||
|
Reference in New Issue
Block a user