diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-05 10:51:24 -0500 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2021-02-05 10:51:24 -0500 |
commit | f6fe651ed8bedb0308f75a7b15ef913add799848 (patch) | |
tree | 0cae260a2ee614994e33eceacae537e97b0aaf9c /node.c | |
parent | dd3887ec47137b6bf993674356a73b3266bb8a51 (diff) |
switched all text rendering to new API
Diffstat (limited to 'node.c')
-rw-r--r-- | node.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |