summaryrefslogtreecommitdiff
path: root/node.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2021-02-07 19:08:17 -0500
committerLeo Tenenbaum <pommicket@gmail.com>2021-02-07 19:08:17 -0500
commite802f33329f5c9c2a0630693d42c737d4b75b409 (patch)
treef8be266956a39882c6aa53b978ce25ff9b3dfdef /node.c
parent4bfae2f646237d21d2ab2714241fe5273759526c (diff)
improved text rendering, started find
Diffstat (limited to 'node.c')
-rw-r--r--node.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/node.c b/node.c
index c61f04d..3e2c117 100644
--- a/node.c
+++ b/node.c
@@ -126,7 +126,6 @@ static void node_frame(Ted *ted, Node *node, Rect r) {
}
TextRenderState text_state = text_render_state_default;
- text_chars_begin(font);
for (u16 i = 0; i < ntabs; ++i) {
TextBuffer *buffer = &ted->buffers[node->tabs[i]];
char tab_title[256];
@@ -150,11 +149,11 @@ static void node_frame(Ted *ted, Node *node, Rect r) {
rgba_u32_to_floats(colors[COLOR_TEXT], text_state.color);
text_state.x = tab_rect.pos.x;
text_state.y = tab_rect.pos.y;
- text_render_chars_utf8(font, &text_state, tab_title);
+ text_utf8_with_state(font, &text_state, tab_title);
}
gl_geometry_draw();
- text_chars_end(font);
+ text_render(font);
}
u16 buffer_index = node->tabs[node->active_tab];