Mercurial > molko
diff libmlk-ui/mlk/ui/button.c @ 493:fce3b3c4b496
ui: label -> mlk_label
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 13:26:53 +0100 |
parents | 441c37e7474f |
children | 2af25db99273 |
line wrap: on
line diff
--- a/libmlk-ui/mlk/ui/button.c Tue Feb 28 13:18:23 2023 +0100 +++ b/libmlk-ui/mlk/ui/button.c Tue Feb 28 13:26:53 2023 +0100 @@ -48,12 +48,12 @@ (void)t; - struct label label = { + struct mlk_label label = { .text = button->text, }; unsigned int lw, lh; - label_query(&label, &lw, &lh); + mlk_label_query(&label, &lw, &lh); if (lw > button->w) mlk_tracef("button width is too small for text: %u < %u", button->w, lw); @@ -66,7 +66,7 @@ mlk_painter_set_color(0x577277ff); mlk_painter_draw_rectangle(button->x, button->y, button->w, button->h); - label_draw(&label); + mlk_label_draw(&label); } int