Mercurial > molko
diff examples/example-message/example-message.c @ 485:3ff1fe64d0cd
core: window -> mlk_window
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 08:40:35 +0100 |
parents | ca30ff96bbe0 |
children | d6757c30658e |
line wrap: on
line diff
--- a/examples/example-message/example-message.c Mon Feb 27 19:47:09 2023 +0100 +++ b/examples/example-message/example-message.c Tue Feb 28 08:40:35 2023 +0100 @@ -50,14 +50,14 @@ { if (mlk_core_init("fr.malikania", "example-message") < 0 || ui_init() < 0 || rpg_init() < 0) mlk_panic(); - if (window_open("Example - Message", W, H) < 0) + if (mlk_window_open("Example - Message", W, H) < 0) mlk_panic(); } static void quit(void) { - window_finish(); + mlk_window_finish(); rpg_finish(); ui_finish(); mlk_core_finish(); @@ -244,10 +244,10 @@ static void smallbottom(void) { - const unsigned int w = window.w / 4; + const unsigned int w = mlk_window.w / 4; const unsigned int h = MH; - const int x = (window.w / 2) - (w / 2); - const int y = (window.h - h - 10); + const int x = (mlk_window.w / 2) - (w / 2); + const int y = (mlk_window.h - h - 10); const char * const text[] = { "This one is small here." };