From a5bec845543b7ffe5fa9001066c1f1335ed8b36e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 29 Aug 2017 18:01:29 +0530 Subject: [PATCH] ... --- kitty/cell_vertex.glsl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index f9a307c91..9dadda930 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -71,8 +71,8 @@ void main() { uint fg = colors[color_indices[0]]; uint bg = colors[color_indices[1]]; uint decoration = colors[2]; - foreground = to_color(fg, default_colors[0]); - background = to_color(bg, default_colors[1]); + foreground = to_color(fg, default_colors[color_indices[0]]); + background = to_color(bg, default_colors[color_indices[1]]); decoration_fg = to_color(decoration, default_colors[0]); underline_pos = to_sprite_pos(pos, (sprite_coords.z >> 24) & SMASK, ZERO, ZERO); strike_pos = to_sprite_pos(pos, (sprite_coords.z >> 26) & SMASK, ZERO, ZERO);