render: regression: alpha applied to inversed text/selections

Introduced by 5f83278afd

Closes #2073
This commit is contained in:
Daniel Eklöf 2025-04-25 19:20:36 +02:00
parent d43326d2b5
commit cb1b7ba0c5
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 3 additions and 1 deletions

View file

@ -76,6 +76,8 @@
* Fallback font (and possibly wrong color) being used when a character
was followed by a zero-width grapheme breaking codepoint (for
example, _LEFT-TO-RIGHT MARK_) ([#2049][2049]).
* Regression: alpha applied to inversed text/selections
([#2073][2073]).
[2039]: https://codeberg.org/dnkl/foot/issues/2039
[2034]: https://codeberg.org/dnkl/foot/issues/2034

View file

@ -744,7 +744,7 @@ render_cell(struct terminal *term, pixman_image_t *pix,
_bg = swap;
}
if (!term->window->is_fullscreen && term->colors.alpha != 0xffff) {
else if (!term->window->is_fullscreen && term->colors.alpha != 0xffff) {
switch (term->conf->colors.alpha_mode) {
case ALPHA_MODE_DEFAULT: {
if (cell->attrs.bg_src == COLOR_DEFAULT) {