aboutsummaryrefslogtreecommitdiff
path: root/src/renderer
diff options
context:
space:
mode:
authorJoe Wilm <joe@jwilm.com>2016-07-04 14:46:25 -0700
committerJoe Wilm <joe@jwilm.com>2016-07-04 14:46:25 -0700
commit14ec851c6947eb4a65f20b3b41fadd6d4f19cb2d (patch)
tree55afac31d52b82d20a4fb67bd21313a77bb4d8e6 /src/renderer
parent4426e57320d441a31c7c142c9694176f62e050b5 (diff)
downloadalacritty-14ec851c6947eb4a65f20b3b41fadd6d4f19cb2d.tar.gz
alacritty-14ec851c6947eb4a65f20b3b41fadd6d4f19cb2d.zip
Use "invert" cursor instead of drawing block
The cursor now matches perfectly cell widths and actually shows the character underneath.
Diffstat (limited to 'src/renderer')
-rw-r--r--src/renderer/mod.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/renderer/mod.rs b/src/renderer/mod.rs
index 4cd26771..d5946c76 100644
--- a/src/renderer/mod.rs
+++ b/src/renderer/mod.rs
@@ -577,22 +577,6 @@ impl<'a> RenderApi<'a> {
}
}
- pub fn render_cursor(&mut self, cursor: &index::Cursor, glyph_cache: &mut GlyphCache) {
- if let Some(glyph) = glyph_cache.get(term::CURSOR_SHAPE, self) {
- let cell = Cell {
- c: term::CURSOR_SHAPE,
- fg: term::DEFAULT_FG,
- bg: term::DEFAULT_BG,
- flags: cell::Flags::empty(),
- };
-
- let y: usize = *cursor.line;
- let x: usize = *cursor.col;
-
- self.add_render_item(y as f32, x as f32, &cell, glyph);
- }
- }
-
pub fn render_grid(&mut self, grid: &Grid<Cell>, glyph_cache: &mut GlyphCache) {
for (i, line) in grid.lines().enumerate() {
for (j, cell) in line.cells().enumerate() {