From 4a0983ac2356d77c622209ef27c6d554273de3b1 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 May 2015 02:40:39 -0400 Subject: option-click canvas to copy character --- js/ui/controls.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'js/ui/controls.js') diff --git a/js/ui/controls.js b/js/ui/controls.js index fe49527..3f92b08 100644 --- a/js/ui/controls.js +++ b/js/ui/controls.js @@ -12,13 +12,12 @@ var controls = (function(){ brush.modified = false } controls.cross.generate = function(){ - var fg = brush.fg, bg = brush.bg brush.forEach(function(lex,x,y) { if ((x+y)%2) { lex.clear() } else { - lex.fill(fg,bg) + lex.assign(brush) } }) } @@ -41,7 +40,7 @@ var controls = (function(){ lex.clear() } else { - lex.fill(fg,bg) + lex.assign(brush) } }) } -- cgit v1.2.3-70-g09d2