summaryrefslogtreecommitdiff
path: root/examples/ui.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/ui.c')
-rw-r--r--examples/ui.c6
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;
}