changeset 615:ade3030f29f0

misc: fix build
author David Demelier <markand@malikania.fr>
date Mon, 21 Aug 2023 07:43:18 +0200
parents 281608524dd1
children dae4cdc6a984
files examples/example-ui/example-ui.c
diffstat 1 files changed, 4 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/examples/example-ui/example-ui.c	Sun Aug 20 14:45:10 2023 +0200
+++ b/examples/example-ui/example-ui.c	Mon Aug 21 07:43:18 2023 +0200
@@ -117,9 +117,7 @@
 		.label = {
 			.text = "Preferences",
 			.x = FRAME_ORIGIN_X,
-			.y = FRAME_ORIGIN_Y,
-			.delegate = &mlk_label_delegate,
-			.style = &mlk_style
+			.y = FRAME_ORIGIN_Y
 		}
 	},
 	.autosave = {
@@ -130,9 +128,7 @@
 			.style = &mlk_style
 		},
 		.label = {
-			.text = "Auto save game",
-			.delegate = &mlk_label_delegate,
-			.style = &mlk_style
+			.text = "Auto save game"
 		}
 	},
 	.buttons = {
@@ -252,6 +248,8 @@
 {
 	(void)st;
 
+	mlk_ui_handle(ev);
+
 	switch (ev->type) {
 	case MLK_EVENT_QUIT:
 		mlk_game_quit();