refactored borders

This commit is contained in:
Evan Almloff committed 2022-02-22 19:41:45 -06:00
1 parent 5a00816fc9
commit a4fdb22197
5 files changed
+326 -217

No files matched your search

+2 -2
View File
@@ -23,8 +23,8 @@ impl<'a> RinkBuffer<'a> {
pub fn set(&mut self, x: u16, y: u16, new: &RinkCell) {
let mut cell = self.buf.get_mut(x, y);
cell.bg = convert(self.cfg.rendering_mode, new.bg.blend(cell.bg));
if &new.symbol == "" {
if &cell.symbol != "" {
if new.symbol.is_empty() {
if !cell.symbol.is_empty() {
// allows text to "shine through" transparent backgrounds
cell.fg = convert(self.cfg.rendering_mode, new.bg.blend(cell.fg));
}