diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-05-25 04:04:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-25 05:04:21 +0300 |
commit | 65a5bed2e1371cce71c6aea6ab1ab2d6a91e059d (patch) | |
tree | 7b785be5a0560f91c4f46929aa1c5f1d75e018b1 | |
parent | cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7 (diff) | |
download | alacritty-65a5bed2e1371cce71c6aea6ab1ab2d6a91e059d.tar.gz alacritty-65a5bed2e1371cce71c6aea6ab1ab2d6a91e059d.zip |
Fix 216-color cube generation
This fixes a regression introduced in cb7ad5b which swapped the green
and blue values when constructing the 216-color RGB cube.
Fixes #6951.
-rw-r--r-- | alacritty/src/display/color.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/alacritty/src/display/color.rs b/alacritty/src/display/color.rs index 054ca314..f742ee84 100644 --- a/alacritty/src/display/color.rs +++ b/alacritty/src/display/color.rs @@ -97,8 +97,8 @@ impl List { } else { self[index] = Rgb::new( if r == 0 { 0 } else { r * 40 + 55 }, - if b == 0 { 0 } else { b * 40 + 55 }, if g == 0 { 0 } else { g * 40 + 55 }, + if b == 0 { 0 } else { b * 40 + 55 }, ); } index += 1; |