diff examples/example-cursor/example-cursor.c @ 493:fce3b3c4b496

ui: label -> mlk_label
author David Demelier <markand@malikania.fr>
date Tue, 28 Feb 2023 13:26:53 +0100
parents d6757c30658e
children 8d5a266a1774
line wrap: on
line diff
--- a/examples/example-cursor/example-cursor.c	Tue Feb 28 13:18:23 2023 +0100
+++ b/examples/example-cursor/example-cursor.c	Tue Feb 28 13:26:53 2023 +0100
@@ -39,11 +39,11 @@
 static char help_text[128];
 static enum mlk_window_cursor cursor = MLK_WINDOW_CURSOR_ARROW;
 
-static struct label help = {
+static struct mlk_label help = {
 	.x = 10,
 	.y = 10,
 	.text = help_text,
-	.flags = LABEL_FLAGS_SHADOW
+	.flags = MLK_LABEL_FLAGS_SHADOW
 };
 
 static void
@@ -108,7 +108,7 @@
 
 	mlk_painter_set_color(0xebede9ff);
 	mlk_painter_clear();
-	label_draw(&help);
+	mlk_label_draw(&help);
 	mlk_painter_present();
 }