From a76225dc7f8ec707fc2dc563a796c65620b1c5a4 Mon Sep 17 00:00:00 2001 From: timb Date: Wed, 22 Jul 2015 00:25:07 -0700 Subject: finally hook up undo --- js/ui/selection.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'js/ui/selection.js') diff --git a/js/ui/selection.js b/js/ui/selection.js index fe0c943..a2720cb 100644 --- a/js/ui/selection.js +++ b/js/ui/selection.js @@ -121,6 +121,8 @@ var selection = (function(){ a[1] += dy b[0] += dx b[1] += dy + undo.new() + undo.save_rect(a[0], a[1], b[0] - a[0] + 1, b[1] - a[1] + 1) blit.copy_to( canvas, selection_canvas, a[0], a[1] ) } if (copying) { -- cgit v1.2.3-70-g09d2