Mercurial > molko
diff examples/example-debug/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 | 76afe639fd72 |
children | 3638b39ef2bf |
line wrap: on
line diff
--- a/examples/example-debug/main.c Wed Mar 10 18:49:00 2021 +0100 +++ b/examples/example-debug/main.c Wed Mar 10 18:49:08 2021 +0100 @@ -38,12 +38,12 @@ static void init(void) { - if (!core_init("fr.malikania", "debug") || !ui_init()) + if (core_init("fr.malikania", "debug") < 0 || ui_init() < 0) panic(); - if (!window_open("Example - Debug", W, H)) + if (window_open("Example - Debug", W, H) < 0) panic(); - debug_options.enable = true; + debug_options.enable = 1; } static void @@ -86,7 +86,7 @@ .draw = draw }; - game_switch(&state, true); + game_switch(&state, 1); game_loop(); }