From 5d65cdb6a8f802054f372a4f197d8df703e85292 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 3 Apr 2020 22:40:33 +0530 Subject: [PATCH] Fix reverse video not being rendered correctly when using transparency or a background image Fixes #2419 --- docs/changelog.rst | 6 ++++++ kitty/cell_vertex.glsl | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/docs/changelog.rst b/docs/changelog.rst index 7b9981081..45db6bed6 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -4,6 +4,12 @@ Changelog |kitty| is a feature full, cross-platform, *fast*, GPU based terminal emulator. To update |kitty|, :doc:`follow the instructions `. +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] -------------------- diff --git a/kitty/cell_vertex.glsl b/kitty/cell_vertex.glsl index 9ec87467d..d57bb1f49 100644 --- a/kitty/cell_vertex.glsl +++ b/kitty/cell_vertex.glsl @@ -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)