aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-07-10 17:21:49 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-07-10 17:21:49 +0000
commit1a21a5fb29e3db6b442d8af8564ee7655fa77ecd (patch)
tree62759dd3093e9851c6406f4fa2281c6066ebcd8a /render.c
parentscrollback: in debug, verify all rows in the view are initialized (diff)
parentterminal: scrolling: prefetch cells of scrolled in lines (diff)
Merge branch 'cache-optimize'
Diffstat (limited to 'render.c')
-rw-r--r--render.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/render.c b/render.c
index 65e2ab96..a97e53cb 100644
--- a/render.c
+++ b/render.c
@@ -101,7 +101,7 @@ render_cell(struct terminal *term, struct buffer *buf, const struct cell *cell,
cairo_status_t status = cairo_scaled_font_text_to_glyphs(
attrs_to_font(term, &cell->attrs), x, y + term->fextents.ascent,
- cell->c, strlen(cell->c), &gseq.g, &new_glyphs,
+ cell->c, strnlen(cell->c, 4), &gseq.g, &new_glyphs,
NULL, NULL, NULL);
if (status != CAIRO_STATUS_SUCCESS)
@@ -379,7 +379,7 @@ render_resize(struct terminal *term, int width, int height)
term->width = width;
term->height = height;
- const int scrollback_lines = 10000;
+ const int scrollback_lines = 1000;
const int old_cols = term->cols;
const int old_rows = term->rows;