aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2023-05-25 04:04:21 +0200
committerGitHub <noreply@github.com>2023-05-25 05:04:21 +0300
commit65a5bed2e1371cce71c6aea6ab1ab2d6a91e059d (patch)
tree7b785be5a0560f91c4f46929aa1c5f1d75e018b1
parentcb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7 (diff)
downloadalacritty-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.rs2
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;