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
No known key found for this signature in database
GPG key ID: 06BC317B515ACE7C
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)