comparison examples/example-message/example-message.c @ 462:5729efd23286

core: core -> mlk_core
author David Demelier <markand@malikania.fr>
date Mon, 27 Feb 2023 09:52:55 +0100
parents 541cb950997b
children 01f5580e43d1
comparison
equal deleted inserted replaced
461:d7874f11565f 462:5729efd23286
46 static struct state *states[1]; 46 static struct state *states[1];
47 47
48 static void 48 static void
49 init(void) 49 init(void)
50 { 50 {
51 if (core_init("fr.malikania", "example-message") < 0 || ui_init() < 0 || rpg_init() < 0) 51 if (mlk_core_init("fr.malikania", "example-message") < 0 || ui_init() < 0 || rpg_init() < 0)
52 panic(); 52 panic();
53 if (window_open("Example - Message", W, H) < 0) 53 if (window_open("Example - Message", W, H) < 0)
54 panic(); 54 panic();
55 } 55 }
56 56
58 quit(void) 58 quit(void)
59 { 59 {
60 window_finish(); 60 window_finish();
61 rpg_finish(); 61 rpg_finish();
62 ui_finish(); 62 ui_finish();
63 core_finish(); 63 mlk_core_finish();
64 } 64 }
65 65
66 static void 66 static void
67 handle(struct state *st, const union mlk_event *ev) 67 handle(struct state *st, const union mlk_event *ev)
68 { 68 {