Mercurial > molko
comparison examples/example-animation/example-animation.c @ 465:01f5580e43d1
core: panic -> mlk_panic
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 10:03:52 +0100 |
parents | 5729efd23286 |
children | 91ce23a36143 |
comparison
equal
deleted
inserted
replaced
464:b6b1162dafa3 | 465:01f5580e43d1 |
---|---|
53 | 53 |
54 static void | 54 static void |
55 init(void) | 55 init(void) |
56 { | 56 { |
57 if (mlk_core_init("fr.malikania", "example-animation") < 0 || ui_init() < 0) | 57 if (mlk_core_init("fr.malikania", "example-animation") < 0 || ui_init() < 0) |
58 panic(); | 58 mlk_panic(); |
59 if (window_open("Example - Animation", W, H) < 0) | 59 if (window_open("Example - Animation", W, H) < 0) |
60 panic(); | 60 mlk_panic(); |
61 if (mlk_image_openmem(&numbers, assets_sprites_numbers, sizeof (assets_sprites_numbers)) < 0) | 61 if (mlk_image_openmem(&numbers, assets_sprites_numbers, sizeof (assets_sprites_numbers)) < 0) |
62 panic(); | 62 mlk_panic(); |
63 } | 63 } |
64 | 64 |
65 static void | 65 static void |
66 handle(struct state *st, const union mlk_event *ev) | 66 handle(struct state *st, const union mlk_event *ev) |
67 { | 67 { |