diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-12-19 06:28:33 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-12-19 06:28:33 +0000 |
| commit | aabb7a7e8fc01fc5aa85fc08f451e1350ccb9f57 (patch) | |
| tree | c5d689fb54cbac2043213ddd9d7815b889431a76 | |
| parent | osc: commented out beginning of OSC 777 (diff) | |
render: attrs_to_font: const:ify
| -rw-r--r-- | render.c | 2 | ||||
| -rw-r--r-- | render.h | 2 |
2 files changed, 2 insertions, 2 deletions
@@ -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]; @@ -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); |
