Draw beam cursor correctly

This commit is contained in:
mars 2022-10-06 20:02:43 -06:00
parent 2fc9de7822
commit f49a0ea6bf
1 changed files with 2 additions and 2 deletions

View File

@ -391,13 +391,13 @@ impl Graphics {
}
CursorShape::Beam => {
let tl = term_coords * cell_size;
let br = tl + Point(cell_size.0, 2);
let br = tl + Point(2, cell_size.1);
self.canvas.draw_rect(cursor_color, tl, br);
}
CursorShape::Underline => {
let mut tl = term_coords * cell_size;
let br = tl + cell_size;
tl.0 += cell_size.0 - 2;
tl.1 = br.1 - 2;
self.canvas.draw_rect(cursor_color, tl, br);
}
CursorShape::HollowBlock => {