summaryrefslogtreecommitdiff
path: root/js/ui/controls.js
diff options
context:
space:
mode:
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)
}
})
}