mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-03 22:25:57 +00:00
Blend flash in BACKGROUND pass also
This commit is contained in:
parent
9a269d55c7
commit
756332cb9d
1 changed files with 4 additions and 1 deletions
|
|
@ -220,7 +220,10 @@ void main() {
|
|||
draw_bg = 1;
|
||||
|
||||
#if defined(BACKGROUND)
|
||||
background = bg;
|
||||
background = choose_color(visual_bell_intensity,
|
||||
blend_softlight(color_to_vec(highlight_bg), bg),
|
||||
bg
|
||||
);
|
||||
// draw_bg_bitfield has bit 0 set to draw default bg cells and bit 1 set to draw non-default bg cells
|
||||
uint draw_bg_mask = uint(2 * cell_has_non_default_bg + (1 - cell_has_non_default_bg));
|
||||
draw_bg = step(1, float(draw_bg_bitfield & draw_bg_mask));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue