Mercurial > molko
diff examples/example-audio/example-audio.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 | ebe4bfe42fcc |
line wrap: on
line diff
--- a/examples/example-audio/example-audio.c Tue Feb 28 13:18:23 2023 +0100 +++ b/examples/example-audio/example-audio.c Tue Feb 28 13:26:53 2023 +0100 @@ -39,18 +39,18 @@ static struct mlk_music *music; static struct mlk_sound *sound; -static struct label label_music = { +static struct mlk_label label_music = { .text = "Music: <Space> play, <p> pause, <r> resume, <q> stop, <l> loop.", .x = 10, .y = 10, - .flags = LABEL_FLAGS_SHADOW + .flags = MLK_LABEL_FLAGS_SHADOW }; -static struct label label_sound = { +static struct mlk_label label_sound = { .text = "Sound: click anywhere to pop a sound.", .x = 10, .y = 30, - .flags = LABEL_FLAGS_SHADOW + .flags = MLK_LABEL_FLAGS_SHADOW }; static void @@ -121,8 +121,8 @@ mlk_painter_set_color(0x006554ff); mlk_painter_clear(); - label_draw(&label_music); - label_draw(&label_sound); + mlk_label_draw(&label_music); + mlk_label_draw(&label_sound); mlk_painter_present(); }