Skip to content

Commit 8d14447

Browse files
committed
Improve calculate_foreground logic
1 parent 29932ff commit 8d14447

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kitty/cell_fragment.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ vec4 calculate_foreground() {
6060
vec4 text_fg = texture(sprites, sprite_pos);
6161
#ifdef SUBPIXEL
6262
vec3 unblended_fg = mix(foreground, text_fg.rgb, colored_sprite);
63-
vec3 blended_fg = mix(background, unblended_fg, text_fg.rgb);
63+
vec3 blended_fg = mix(background, foreground, text_fg.rgb);
6464
vec3 fg = mix(unblended_fg, blended_fg, subpixel);
6565
#else
6666
vec3 fg = mix(foreground, text_fg.rgb, colored_sprite);

0 commit comments

Comments
 (0)