diff options
| author | timb <opuscule@gmail.com> | 2016-03-13 17:42:28 -0700 |
|---|---|---|
| committer | timb <opuscule@gmail.com> | 2016-03-13 17:42:28 -0700 |
| commit | c76582f92f4686dff929bff706b24eb5d1058e78 (patch) | |
| tree | 3edcd1955b2bc71290041a9bae6b524ff2f6c7ee /js/lex.js | |
| parent | cfbc275f16e0bb48cc31b61abe086798d8059dda (diff) | |
fix painting from brush cells with text and trans bg. renamed lex paint to lex stamp to match draw.js
Diffstat (limited to 'js/lex.js')
| -rw-r--r-- | js/lex.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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() |
