summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/ui.c6
1 files changed, 3 insertions, 3 deletions
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;