summaryrefslogtreecommitdiff
path: root/ui.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2023-01-06 11:52:30 -0500
committerpommicket <pommicket@gmail.com>2023-01-06 11:52:30 -0500
commitd69fb12c055e1e17c765ca9714c508552a027384 (patch)
tree41073af13fdf014cc7d630c6aa4b5593fea16a42 /ui.c
parent268aba5dde93b67df5f5bd137141eeb177485685 (diff)
phantom completions
Diffstat (limited to 'ui.c')
-rw-r--r--ui.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/ui.c b/ui.c
index 56e89db..0c398b3 100644
--- a/ui.c
+++ b/ui.c
@@ -164,7 +164,7 @@ void selector_render(Ted *ted, Selector *s) {
if (entry->detail) {
// draw detail
- float detail_size = text_get_size_v2(font, entry->detail).x;
+ float detail_size = text_get_size_vec2(font, entry->detail).x;
TextRenderState detail_state = text_state;
detail_state.x = maxd(text_state.x + 2 * padding, x2 - detail_size);
@@ -530,7 +530,7 @@ void file_selector_render(Ted *ted, FileSelector *fs) {
vec2 button_get_size(Ted *ted, const char *text) {
float border_thickness = ted_active_settings(ted)->border_thickness;
- return vec2_add_const(text_get_size_v2(ted->font, text), 2 * border_thickness);
+ return vec2_add_const(text_get_size_vec2(ted->font, text), 2 * border_thickness);
}
void button_render(Ted *ted, Rect button, const char *text, u32 color) {
@@ -668,7 +668,7 @@ vec2 checkbox_frame(Ted *ted, bool *value, const char *label, vec2 pos) {
}
vec2 text_pos = vec2_add(pos, Vec2(checkbox_size + padding * 0.5f, 0));
- vec2 size = text_get_size_v2(font, label);
+ vec2 size = text_get_size_vec2(font, label);
text_utf8(font, label, text_pos.x, text_pos.y, colors[COLOR_TEXT]);
gl_geometry_draw();