diff options
author | Josh Rahm <rahm@google.com> | 2021-09-15 11:50:56 -0600 |
---|---|---|
committer | Josh Rahm <rahm@google.com> | 2021-09-15 11:50:56 -0600 |
commit | 579a59b054b5b994317b58bde1f075b1389f05e7 (patch) | |
tree | d445c6e9abd239878148a5eedd88343cd54ec3ab /alacritty | |
parent | 2ded77656793f340440fe0efb54119697bb22a1a (diff) | |
download | r-alacritty-579a59b054b5b994317b58bde1f075b1389f05e7.tar.gz r-alacritty-579a59b054b5b994317b58bde1f075b1389f05e7.tar.bz2 r-alacritty-579a59b054b5b994317b58bde1f075b1389f05e7.zip |
Change undercurl line style
Diffstat (limited to 'alacritty')
-rw-r--r-- | alacritty/src/renderer/rects.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alacritty/src/renderer/rects.rs b/alacritty/src/renderer/rects.rs index 2640b645..f4e98bcf 100644 --- a/alacritty/src/renderer/rects.rs +++ b/alacritty/src/renderer/rects.rs @@ -153,9 +153,11 @@ impl RenderLine { let mut x = start_x; let mut idx = 0; while x < end_x { + let altr = [1., 0., -1., 0.][idx % 4]; + let rect = RenderRect::new( x + size.padding_x(), - y + size.padding_y() + ((idx % 2) as f32) - 1., + y + size.padding_y() + altr, 1., thickness + 1., color, |