mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-04 04:06:06 -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];
|
||||
|
|
|
|||
2
render.h
2
render.h
|
|
@ -3,7 +3,7 @@
|
|||
#include "terminal.h"
|
||||
|
||||
struct font *attrs_to_font(
|
||||
struct terminal *term, const struct attributes *attrs);
|
||||
const struct terminal *term, const struct attributes *attrs);
|
||||
|
||||
void grid_render(struct terminal *term);
|
||||
void render_resize(struct terminal *term, int width, int height);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue