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

@ -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) {