aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2024-07-03 07:59:56 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-07-03 07:59:56 +0000
commite5ed387426cb7d50d6d24dc0a3fbf95334314d40 (patch)
tree075e84e1f06a7120f1abb1292ba144b81cac894d /render.c
parentcsi: implement SGR 21, double underlines (diff)
parentcsi: redraw margins after restoring the palette (diff)
Merge branch 'color-stack'
Closes #856
Diffstat (limited to 'render.c')
-rw-r--r--render.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/render.c b/render.c
index 4103be5c..2f18ff88 100644
--- a/render.c
+++ b/render.c
@@ -557,13 +557,13 @@ cursor_colors_for_cell(const struct terminal *term, const struct cell *cell,
const pixman_color_t *fg, const pixman_color_t *bg,
pixman_color_t *cursor_color, pixman_color_t *text_color)
{
- if (term->cursor_color.cursor >> 31)
- *cursor_color = color_hex_to_pixman(term->cursor_color.cursor);
+ if (term->colors.cursor_bg >> 31)
+ *cursor_color = color_hex_to_pixman(term->colors.cursor_bg);
else
*cursor_color = *fg;
- if (term->cursor_color.text >> 31)
- *text_color = color_hex_to_pixman(term->cursor_color.text);
+ if (term->colors.cursor_fg >> 31)
+ *text_color = color_hex_to_pixman(term->colors.cursor_fg);
else {
*text_color = *bg;