mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-09 10:06:20 -05:00
render: attrs_to_font: const:ify
This commit is contained in:
parent
e7abd6ce97
commit
aabb7a7e8f
2 changed files with 2 additions and 2 deletions
2
render.c
2
render.c
|
|
@ -22,7 +22,7 @@
|
|||
#define max(x, y) ((x) > (y) ? (x) : (y))
|
||||
|
||||
struct font *
|
||||
attrs_to_font(struct terminal *term, const struct attributes *attrs)
|
||||
attrs_to_font(const struct terminal *term, const struct attributes *attrs)
|
||||
{
|
||||
int idx = attrs->italic << 1 | attrs->bold;
|
||||
return term->fonts[idx];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue