diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-10-16 19:52:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-10-16 19:52:12 +0000 |
| commit | a789230cf9f87c68fcced647d0a1e8edc516f1c2 (patch) | |
| tree | 13ae47436e665872f368795d2ec3e7881070f247 /render.c | |
| parent | selection: replace \r\n with \n in pasted text (diff) | |
font: font_from_name() returns an allocated font struct
Diffstat (limited to 'render.c')
| -rw-r--r-- | render.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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]); |
