summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-05 10:51:24 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-05 10:51:24 -0500
commitf6fe651ed8bedb0308f75a7b15ef913add799848 (patch)
tree0cae260a2ee614994e33eceacae537e97b0aaf9c /node.c
parentdd3887ec47137b6bf993674356a73b3266bb8a51 (diff)
switched all text rendering to new API
Diffstat (limited to 'node.c')
-rw-r--r--node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/node.c b/node.c
index 0713977..d9c2cad 100644
--- a/node.c
+++ b/node.c
@@ -147,9 +147,9 @@ static void node_frame(Ted *ted, Node *node, Rect r) {
char const *surround = buffer_unsaved_changes(buffer) ? "*" : "";
strbuf_printf(tab_title, "%s%s%s", surround, filename, surround);
}
- gl_color_rgba(colors[COLOR_TEXT]);
TextRenderState text_state = text_render_state_default;
text_state.max_x = rect_x2(tab_rect);
+ rgba_u32_to_floats(colors[COLOR_TEXT], text_state.color);
text_render_with_state(font, &text_state, tab_title, tab_rect.pos.x, tab_rect.pos.y);
}