summaryrefslogtreecommitdiff
path: root/js/ui/controls.js
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-05-05 02:40:39 -0400
committerJules Laplace <jules@okfoc.us>2015-05-05 02:40:39 -0400
commit4a0983ac2356d77c622209ef27c6d554273de3b1 (patch)
tree47596a61e5404e966f045ccd6675c9eb89b7ac9e /js/ui/controls.js
parentf1f72a20179dff5834d159f72d6dd486c2ff1706 (diff)
option-click canvas to copy character
Diffstat (limited to 'js/ui/controls.js')
-rw-r--r--js/ui/controls.js5
1 files changed, 2 insertions, 3 deletions
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)
}
})
}