diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2025-01-16 04:57:15 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2025-01-16 04:57:15 +0100 |
commit | 41abfb196c524cf16107675b8e5b356827a04cd0 (patch) | |
tree | 4e643caa60fd7d3c504b1caead1d178be52e68b2 /examples/ui.c | |
parent | 06c0fc7819bb0787b24f12660c6a85c39d9f26fe (diff) | |
download | reduced_system_layer-41abfb196c524cf16107675b8e5b356827a04cd0.zip |
Refactor
Diffstat (limited to 'examples/ui.c')
-rw-r--r-- | examples/ui.c | 6 |
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; |