diff options
author | Kirill Chibisov <contact@kchibisov.com> | 2020-12-28 12:45:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-12-28 09:45:39 +0000 |
commit | 12fbd0051cd743bcea79f45777325f76485fd865 (patch) | |
tree | 8e09bf529451b21bfffaa27ed42116338837216c /alacritty/src/renderer/rects.rs | |
parent | fdc10d270e423e6bec756cab61b502e28260129e (diff) | |
download | r-alacritty-12fbd0051cd743bcea79f45777325f76485fd865.tar.gz r-alacritty-12fbd0051cd743bcea79f45777325f76485fd865.tar.bz2 r-alacritty-12fbd0051cd743bcea79f45777325f76485fd865.zip |
Draw cursor with rect renderer
This commit makes cursors being drawn via rects, thus it's always above
underlines/strikeouts. Also, since the cursor isn't a glyph anymore, it
can't be obscured due to atlas switching while glyphs are rendered.
Fixes #4404.
Fixes #3471.
Diffstat (limited to 'alacritty/src/renderer/rects.rs')
-rw-r--r-- | alacritty/src/renderer/rects.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/alacritty/src/renderer/rects.rs b/alacritty/src/renderer/rects.rs index 1f50da87..cfd17379 100644 --- a/alacritty/src/renderer/rects.rs +++ b/alacritty/src/renderer/rects.rs @@ -6,7 +6,8 @@ use crossfont::Metrics; use alacritty_terminal::index::{Column, Point}; use alacritty_terminal::term::cell::Flags; use alacritty_terminal::term::color::Rgb; -use alacritty_terminal::term::{RenderableCell, SizeInfo}; +use alacritty_terminal::term::render::RenderableCell; +use alacritty_terminal::term::SizeInfo; use crate::gl; use crate::gl::types::*; |