render: cell: reset clip region also when we're NOT rendering a glyph

This commit is contained in:
Daniel Eklöf 2020-06-06 14:22:25 +02:00
parent 21e9031420
commit fd99b28beb
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

View file

@ -479,7 +479,6 @@ render_cell(struct terminal *term, pixman_image_t *pix,
} }
} }
pixman_image_set_clip_region32(pix, NULL);
} }
pixman_image_unref(clr_pix); pixman_image_unref(clr_pix);
@ -499,6 +498,7 @@ draw_cursor:
if (has_cursor && (term->cursor_style != CURSOR_BLOCK || !term->visual_focus)) if (has_cursor && (term->cursor_style != CURSOR_BLOCK || !term->visual_focus))
draw_cursor(term, cell, font, pix, &fg, &bg, x, y, cell_cols); draw_cursor(term, cell, font, pix, &fg, &bg, x, y, cell_cols);
pixman_image_set_clip_region32(pix, NULL);
return cell_cols; return cell_cols;
} }