Fix reverse video not being rendered correctly when using transparency or a background image

Fixes #2419
This commit is contained in:
Kovid Goyal
2020-04-03 22:40:33 +05:30
parent 759a15ccbb
commit 5d65cdb6a8
2 changed files with 7 additions and 1 deletions

View File

@@ -4,6 +4,12 @@ Changelog
|kitty| is a feature full, cross-platform, *fast*, GPU based terminal emulator.
To update |kitty|, :doc:`follow the instructions <binary>`.
0.17.3 [future]
- Fix reverse video not being rendered correctly when using transparency or a
background image (:iss:`2419`)
0.17.2 [2020-03-29]
--------------------

View File

@@ -208,7 +208,7 @@ void main() {
// Background {{{
#ifdef NEEDS_BACKROUND
float cell_has_non_default_bg = step(1, float(abs(bg_as_uint - default_colors[bg_index])));
float cell_has_non_default_bg = step(1, float(abs(bg_as_uint - default_colors[1])));
draw_bg = 1;
#if defined(BACKGROUND)