aboutsummaryrefslogtreecommitdiff
path: root/render.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-10-16 20:35:44 +0000
committerDaniel Eklöf <daniel@ekloef.se>2019-10-16 20:35:44 +0000
commit6f52b86105ff29cca3b8d58f35719f08a840700a (patch)
treebd313d426d50e53a73e6296c696e2ffb468fea1e /render.c
parentselection: replace \r\n with \n in pasted text (diff)
parentfont: cache top-level fonts (diff)
Merge branch 'font-cache'
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 bfd27faa..ff05d501 100644
--- a/render.c
+++ b/render.c
@@ -24,7 +24,7 @@ struct font *
attrs_to_font(struct terminal *term, const struct attributes *attrs)
{
int idx = attrs->italic << 1 | attrs->bold;
- return &term->fonts[idx];
+ return term->fonts[idx];
}
static inline struct rgb
@@ -750,7 +750,7 @@ render_search_box(struct terminal *term)
PIXMAN_OP_SRC, buf->pix, &color,
1, &(pixman_rectangle16_t){0, 0, width, height});
- struct font *font = &term->fonts[0];
+ struct font *font = term->fonts[0];
int x = margin;
int y = margin;
pixman_color_t fg = color_hex_to_pixman(term->colors.table[0]);