Draw strikeout cells

This commit is contained in:
mars 2022-10-04 17:28:50 -06:00
parent f024522675
commit 89f51bd6a5
1 changed files with 8 additions and 0 deletions

View File

@ -215,6 +215,14 @@ impl App {
buffer[px_start + x as usize] = color;
}
}
if cell.flags.contains(CellFlags::STRIKEOUT) {
let px_start = px_start + (self.cell_height >> 1) * width;
for x in 0..self.cell_width {
buffer[px_start + x as usize] = fg;
}
}
if cell.flags.contains(CellFlags::UNDERLINE) {
let px_start = px_start + (self.cell_height - 1) * width;