Mercurial > molko
diff examples/example-label/main.c @ 298:196264679079
misc: remove usage of bool
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 10 Mar 2021 18:49:08 +0100 |
parents | bfde372bf152 |
children | 3638b39ef2bf |
line wrap: on
line diff
--- a/examples/example-label/main.c Wed Mar 10 18:49:00 2021 +0100 +++ b/examples/example-label/main.c Wed Mar 10 18:49:08 2021 +0100 @@ -104,9 +104,9 @@ static void init(void) { - if (!core_init("fr.malikania", "label") || !ui_init()) + if (core_init("fr.malikania", "label") < 0 || ui_init() < 0) panic(); - if (!window_open("Example - Label", W, H)) + if (window_open("Example - Label", W, H) < 0) panic(); for (size_t i = 0; i < UTIL_SIZE(table); ++i) { @@ -167,7 +167,7 @@ .draw = draw }; - game_switch(&state, true); + game_switch(&state, 1); game_loop(); }