Mercurial > molko
comparison examples/example-trace/example-trace.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 |
comparison
equal
deleted
inserted
replaced
484:f14b8290b3ce | 485:3ff1fe64d0cd |
---|---|
40 static void | 40 static void |
41 init(void) | 41 init(void) |
42 { | 42 { |
43 if (mlk_core_init("fr.malikania", "example-trace") < 0 || ui_init() < 0) | 43 if (mlk_core_init("fr.malikania", "example-trace") < 0 || ui_init() < 0) |
44 mlk_panic(); | 44 mlk_panic(); |
45 if (window_open("Example - Trace", W, H) < 0) | 45 if (mlk_window_open("Example - Trace", W, H) < 0) |
46 mlk_panic(); | 46 mlk_panic(); |
47 | 47 |
48 mlk_trace_handler = trace_hud_handler; | 48 mlk_trace_handler = trace_hud_handler; |
49 } | 49 } |
50 | 50 |
109 } | 109 } |
110 | 110 |
111 static void | 111 static void |
112 quit(void) | 112 quit(void) |
113 { | 113 { |
114 window_finish(); | 114 mlk_window_finish(); |
115 ui_finish(); | 115 ui_finish(); |
116 mlk_core_finish(); | 116 mlk_core_finish(); |
117 } | 117 } |
118 | 118 |
119 int | 119 int |