diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-08-17 15:43:47 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-08-17 15:43:47 +0000 |
| commit | 9b6d0cfcd1e45f1f2038878805ab87523c3180d4 (patch) | |
| tree | 572cbdb416c7402064e1b6b6763feb46ff66caf8 /render.c | |
| parent | render: use 32-bit pixman calls, where applicable (diff) | |
render: minor optimization
Don't instantiate a pixman color unnecessarily when drawing a block
cursor.
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -215,7 +215,7 @@ render_cell(struct terminal *term, pixman_image_t *pix, &(pixman_rectangle16_t){x, y, cell_cols * width, height}); /* Non-block cursors */ - if (has_cursor) { + if (has_cursor && !block_cursor) { pixman_color_t cursor_color = term->cursor_color.text >> 31 ? color_hex_to_pixman(term->cursor_color.cursor) : color_hex_to_pixman(_fg); |
