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)) #define max(x, y) ((x) > (y) ? (x) : (y))
struct font * 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; int idx = attrs->italic << 1 | attrs->bold;
return term->fonts[idx]; return term->fonts[idx];

View file

@ -3,7 +3,7 @@
#include "terminal.h" #include "terminal.h"
struct font *attrs_to_font( 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 grid_render(struct terminal *term);
void render_resize(struct terminal *term, int width, int height); void render_resize(struct terminal *term, int width, int height);