From 41abfb196c524cf16107675b8e5b356827a04cd0 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Thu, 16 Jan 2025 04:57:15 +0100 Subject: Refactor --- examples/ui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'examples/ui.c') diff --git a/examples/ui.c b/examples/ui.c index 8f1294a..0e8e29e 100644 --- a/examples/ui.c +++ b/examples/ui.c @@ -81,16 +81,16 @@ void update_and_render_frame(void) { } for (i64 n = 0; n < g_platform.clipboard_size;) { - c32 c = utf8_read(g_platform.clipboard_size - n, g_platform.clipboard + n); + UTF8_Char c = utf8_read(g_platform.clipboard_size - n, g_platform.clipboard + n); if (text_len < (i64) (sizeof text / sizeof *text)) { for (i64 j = text_len; j > cursor; --j) text[j] = text[j - 1]; - text[cursor++] = c; + text[cursor++] = c.code; ++text_len; } - n += utf8_size(c); + n += c.len; } } break; -- cgit v1.2.3