changeset 406:107fc5c77df2

examples: fix ui
author David Demelier <markand@malikania.fr>
date Sun, 03 Apr 2022 08:05:30 +0200
parents 0e39368e106c
children e6f972e04519
files examples/example-ui/main.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/examples/example-ui/main.c	Sun Apr 03 08:05:17 2022 +0200
+++ b/examples/example-ui/main.c	Sun Apr 03 08:05:30 2022 +0200
@@ -63,6 +63,7 @@
  * +---------------------------------------------+
  */
 static struct {
+	struct action *actions[16];
 	struct action_stack st;
 
 	struct {
@@ -136,6 +137,8 @@
 		panic();
 	if (window_open("Example - UI", W, H) < 0)
 		panic();
+
+	action_stack_init(&ui.st, ui.actions, UTIL_SIZE(ui.actions));
 }
 
 static void