From 27b4343c2a7e2583881485a5ac667894fec729f0 Mon Sep 17 00:00:00 2001 From: Mitya Selivanov Date: Sun, 2 Feb 2025 14:38:13 +0100 Subject: Refactor, renaming (work in progress) --- 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 022a463..a3ca476 100644 --- a/examples/ui.c +++ b/examples/ui.c @@ -12,7 +12,7 @@ i64 cursor = 0; i64 selection = 0; void update_and_render_frame(void) { - p_wait_events(); + wait_main_window_events(); Brush background = RGB(.2f, .1f, 0.f); background.quick = 1; @@ -226,7 +226,7 @@ void update_and_render_frame(void) { draw_text_area((Brush) { .color = color, }, x0, y0, w, h, 10., 10., text_len, text); draw_text_cursor((Brush) { .xor_color = 1, .color = { 1.f, 1.f, 1.f, 1.f }, }, x0, y0, w, h, 10., 10., cursor, selection, text_len, text); - p_render_frame(); + render_main_window_frame(); } i32 main(i32 argc, c8 **argv) { @@ -237,7 +237,7 @@ i32 main(i32 argc, c8 **argv) { .title = "UI", }; - p_event_loop(); + run_main_window_event_loop(); return 0; } -- cgit v1.2.3