box-drawing: make ‘term’ parameter const

This commit is contained in:
Daniel Eklöf 2020-12-29 10:40:58 +01:00
parent 44f365bd00
commit cf0270c1ea
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 2 deletions

View file

@ -1512,7 +1512,7 @@ draw_glyph(wchar_t wc, uint8_t *buf, int width, int height, int stride, int dpi)
}
struct fcft_glyph *
box_drawing(struct terminal *term, wchar_t wc)
box_drawing(const struct terminal *term, wchar_t wc)
{
int width = term->cell_width;
int height = term->cell_height;

View file

@ -3,4 +3,4 @@
#include <fcft/fcft.h>
struct terminal;
struct fcft_glyph *box_drawing(struct terminal *term, wchar_t wc);
struct fcft_glyph *box_drawing(const struct terminal *term, wchar_t wc);