Fix setting background_opacity causing window margins/padding to be slightly different shade from background

Fixes #1221
This commit is contained in:
Kovid Goyal 2018-12-11 08:36:03 +05:30
parent 1ba7b5f5a3
commit 4a8562a85f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 7 additions and 1 deletions

View File

@ -3,6 +3,12 @@ Changelog
|kitty| is a feature full, cross-platform, *fast*, GPU based terminal emulator.
0.13.2 [future]
------------------------------
- Fix setting background_opacity causing window margins/padding to be slightly
different shade from background (:iss:`1221`)
0.13.1 [2018-12-06]
------------------------------

View File

@ -101,7 +101,7 @@ void main() {
#else
// SIMPLE
#ifdef TRANSPARENT
final_color = alpha_blend_premul(fg.rgb, fg.a, background * bg_alpha, bg_alpha);
final_color = alpha_blend_premul(fg.rgb, fg.a, background, bg_alpha);
final_color = vec4(final_color.rgb, final_color.a);
#else
// since background alpha is 1.0, it is effectively pre-multiplied