diff options
author | Mitya Selivanov <automainint@guattari.tech> | 2025-02-02 14:38:13 +0100 |
---|---|---|
committer | Mitya Selivanov <automainint@guattari.tech> | 2025-02-02 14:38:13 +0100 |
commit | 27b4343c2a7e2583881485a5ac667894fec729f0 (patch) | |
tree | 018df2c4df87ef39f9c828a1d6e255825ee7ed9b /examples/ui.c | |
parent | bc9e6042e709b7790f2f130dde08b13c929653b1 (diff) | |
download | reduced_system_layer-27b4343c2a7e2583881485a5ac667894fec729f0.zip |
Refactor, renaming (work in progress)perf
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 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; } |