From aabb7a7e8fc01fc5aa85fc08f451e1350ccb9f57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Thu, 19 Dec 2019 07:28:33 +0100 Subject: [PATCH] render: attrs_to_font: const:ify --- render.c | 2 +- render.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/render.c b/render.c index 942653b4..6918797c 100644 --- a/render.c +++ b/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]; diff --git a/render.h b/render.h index 1c6bbd7f..ad6b6578 100644 --- a/render.h +++ b/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);