diff libmlk-ui/mlk/ui/button.c @ 457:04797b35565c

core: painter -> mlk_painter
author David Demelier <markand@malikania.fr>
date Sat, 18 Feb 2023 21:07:02 +0100
parents c4f31658104d
children 02b16dd49b54
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/button.c	Sat Feb 18 21:03:19 2023 +0100
+++ b/libmlk-ui/mlk/ui/button.c	Sat Feb 18 21:07:02 2023 +0100
@@ -63,8 +63,8 @@
 	align(ALIGN_CENTER, &label.x, &label.y, lw, lh,
 	    button->x, button->y, button->w, button->h);
 
-	painter_set_color(0x577277ff);
-	painter_draw_rectangle(button->x, button->y, button->w, button->h);
+	mlk_painter_set_color(0x577277ff);
+	mlk_painter_draw_rectangle(button->x, button->y, button->w, button->h);
 
 	label_draw(&label);
 }