From c90f7788b9dcf7c59db1f423c6c76fe840d103e0 Mon Sep 17 00:00:00 2001 From: Christian Duerr Date: Thu, 25 May 2023 00:32:28 +0200 Subject: 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. --- alacritty/src/display/color.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3-54-g00ecf