summaryrefslogtreecommitdiff
path: root/js/lex.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/lex.js')
-rw-r--r--js/lex.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/js/lex.js b/js/lex.js
index e684eea..308f666 100644
--- a/js/lex.js
+++ b/js/lex.js
@@ -65,10 +65,9 @@ Lex.prototype.assign = function (lex){
this.opacity = lex.opacity
this.build()
}
-Lex.prototype.paint = function (lex){
- if (lex.opacity == 0) return
+Lex.prototype.stamp = function (lex, brush){
if (brush.draw_fg) this.fg = lex.fg
- if (brush.draw_bg) this.bg = lex.bg
+ if (brush.draw_bg && lex.opacity > 0) this.bg = lex.bg
if (brush.draw_char) this.char = lex.char
this.opacity = 1
this.build()
@@ -85,13 +84,6 @@ Lex.prototype.erase = function (){
this.opacity = 1
this.build()
}
-Lex.prototype.fill = function(lex){
- this.fg = lex.fg
- this.bg = lex.bg
- this.char = lex.char
- this.opacity = lex.opacity
- this.build()
-}
Lex.prototype.eq = function(lex){
return lex && this.fg == lex.fg && this.bg == lex.bg && this.char == lex.char
}