summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/ui.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/examples/ui.c b/examples/ui.c
index ebc00c8..e8b5611 100644
--- a/examples/ui.c
+++ b/examples/ui.c
@@ -78,8 +78,8 @@ void update_and_render_frame(void) {
text_len -= i1 - i0;
}
- for (i64 n = 0; n < g_platform.clipboard_text_len;) {
- UTF8_Char c = utf8_read(g_platform.clipboard_text_len - n, g_platform.clipboard_text + n);
+ for (i64 n = 0; n < g_platform.clipboard.text_len;) {
+ UTF8_Char c = utf8_read(g_platform.clipboard.text_len - n, g_platform.clipboard.text + n);
if (text_len < (i64) (sizeof text / sizeof *text)) {
for (i64 j = text_len; j > cursor; --j)
@@ -232,7 +232,8 @@ i32 main(i32 argc, c8 **argv) {
(void) argv;
g_platform = (Platform) {
- .title = "UI",
+ .title = "UI",
+ .clipboard.enable_text = 1,
};
run_main_window_event_loop();