aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2023-05-25 00:32:28 +0200
committerChristian Duerr <contact@christianduerr.com>2023-05-25 00:32:28 +0200
commitc90f7788b9dcf7c59db1f423c6c76fe840d103e0 (patch)
tree7b785be5a0560f91c4f46929aa1c5f1d75e018b1
parentcb7ad5b7e6893787c2006cc8cb09fbbc4711c0f7 (diff)
downloadalacritty-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.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;