render: attrs_to_font: const:ify

This commit is contained in:
Daniel Eklöf 2019-12-19 07:28:33 +01:00
parent e7abd6ce97
commit aabb7a7e8f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 2 deletions

View file

@ -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];