From 6e55be1557104184eb8eaa33ce7d5fd33fa1bdb5 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 18 Jul 2019 10:33:58 +0200 Subject: render: cache generated glyphs for regular ASCII characters To avoid having to re-generate glyphs, cache the glyphs. For now, we only cache ASCII characters, as this allows us to lookup the cache by simply indexing with the character (into a 256-entry array). --- render.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'render.h') diff --git a/render.h b/render.h index 93220dd8..c34257ec 100644 --- a/render.h +++ b/render.h @@ -2,7 +2,7 @@ #include "terminal.h" -const struct font *attrs_to_font( +struct font *attrs_to_font( struct terminal *term, const struct attributes *attrs); void grid_render(struct terminal *term); -- cgit v1.3