aboutsummaryrefslogtreecommitdiff
path: root/examples/pugl_print_events.c
diff options
context:
space:
mode:
Diffstat (limited to 'examples/pugl_print_events.c')
-rw-r--r--examples/pugl_print_events.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/pugl_print_events.c b/examples/pugl_print_events.c
index c662117..9c81033 100644
--- a/examples/pugl_print_events.c
+++ b/examples/pugl_print_events.c
@@ -1,5 +1,5 @@
/*
- Copyright 2012-2019 David Robillard <http://drobilla.net>
+ Copyright 2012-2020 David Robillard <http://drobilla.net>
Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
@@ -68,8 +68,7 @@ main(void)
puglShowWindow(app.view);
while (!app.quit) {
- puglPollEvents(app.world, -1);
- puglDispatchEvents(app.world);
+ puglUpdate(app.world, -1.0);
}
puglFreeView(app.view);