Draw beam cursor correctly
This commit is contained in:
parent
2fc9de7822
commit
f49a0ea6bf
|
@ -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 => {
|
||||
|
|
Loading…
Reference in New Issue