Mercurial > molko
diff libmlk-rpg/mlk/rpg/battle-message.c @ 493:fce3b3c4b496
ui: label -> mlk_label
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 13:26:53 +0100 |
parents | 734b598534c4 |
children | 52a305833381 |
line wrap: on
line diff
--- a/libmlk-rpg/mlk/rpg/battle-message.c Tue Feb 28 13:18:23 2023 +0100 +++ b/libmlk-rpg/mlk/rpg/battle-message.c Tue Feb 28 13:26:53 2023 +0100 @@ -44,7 +44,7 @@ assert(msg); struct mlk_frame f = {0}; - struct label l = {0}; + struct mlk_label l = {0}; unsigned int lw = 0, lh = 0; /* Prepare message frame. */ @@ -57,13 +57,13 @@ /* Prepare message label box. */ l.text = msg->text; - l.flags = LABEL_FLAGS_SHADOW; + l.flags = MLK_LABEL_FLAGS_SHADOW; l.theme = msg->theme; - label_query(&l, &lw, &lh); + mlk_label_query(&l, &lw, &lh); /* Align the text in the box. */ mlk_align(MLK_ALIGN_CENTER, &l.x, &l.y, lw, lh, f.x, f.y, f.w, f.h); mlk_frame_draw(&f); - label_draw(&l); + mlk_label_draw(&l); }