diff options
author | Christian Duerr <contact@christianduerr.com> | 2023-05-25 00:32:28 +0200 |
---|---|---|
committer | Christian Duerr <contact@christianduerr.com> | 2023-05-25 00:32:28 +0200 |
commit | c90f7788b9dcf7c59db1f423c6c76fe840d103e0 (patch) | |
tree | 7b785be5a0560f91c4f46929aa1c5f1d75e018b1 | |
parent | cb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7 (diff) | |
download | alacritty-fix_colors.tar.gz alacritty-fix_colors.zip |
Fix 216-color cube generationfix_colors
This fixes a regression introduced in cb7ad5b which swapped the green
and blue values when constructing the 216-color RGB cube.
-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; |