diff examples/example-ui/example-ui.c @ 487:f2d3c5a97884

ui: align -> mlk_align
author David Demelier <markand@malikania.fr>
date Tue, 28 Feb 2023 13:08:58 +0100
parents d6757c30658e
children 441c37e7474f
line wrap: on
line diff
--- a/examples/example-ui/example-ui.c	Tue Feb 28 13:04:13 2023 +0100
+++ b/examples/example-ui/example-ui.c	Tue Feb 28 13:08:58 2023 +0100
@@ -138,7 +138,7 @@
 
 	/* Header. */
 	label_query(l, &w, &h);
-	align(ALIGN_LEFT, &l->x, &l->y, w, h, f->x, f->y, f->w, HEADER_HEIGHT);
+	mlk_align(MLK_ALIGN_LEFT, &l->x, &l->y, w, h, f->x, f->y, f->w, HEADER_HEIGHT);
 
 	l->x += theme_default()->padding;
 }
@@ -168,7 +168,7 @@
 	/* Button. */
 	b->w = f->w / 4;
 
-	align(ALIGN_BOTTOM_RIGHT, &b->x, &b->y, b->w, b->h,
+	mlk_align(MLK_ALIGN_BOTTOM_RIGHT, &b->x, &b->y, b->w, b->h,
 	    f->x, f->y, f->w, f->h);
 
 	b->x -= padding;