mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
render: fix selected cursor cell being ‘invisble’ when background alpha is used
... by taking the cell ‘selected’ state into account when determining whether to use the default fg or bg as the ‘text’ color.
This commit is contained in:
parent
7f26914583
commit
7a43737745
1 changed files with 1 additions and 1 deletions
2
render.c
2
render.c
|
|
@ -424,7 +424,7 @@ cursor_colors_for_cell(const struct terminal *term, const struct cell *cell,
|
|||
/* We *know* this only happens when bg is the default bg
|
||||
* color */
|
||||
*text_color = color_hex_to_pixman(
|
||||
term->reverse ? term->colors.fg : term->colors.bg);
|
||||
term->reverse ^ is_selected ? term->colors.fg : term->colors.bg);
|
||||
} else
|
||||
*text_color = *bg;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue