Mercurial > molko
diff examples/example-animation/example-animation.c @ 500:d7855791a2b8
examples: prefix mlk
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 15:35:17 +0100 |
parents | 41267f6e344d |
children | d49a05e7a5b5 |
line wrap: on
line diff
--- a/examples/example-animation/example-animation.c Tue Feb 28 13:50:35 2023 +0100 +++ b/examples/example-animation/example-animation.c Tue Feb 28 15:35:17 2023 +0100 @@ -95,8 +95,8 @@ unsigned int cellw, cellh; - cellw = registry_sprites[REGISTRY_TEXTURE_NUMBERS].cellw; - cellh = registry_sprites[REGISTRY_TEXTURE_NUMBERS].cellh; + cellw = mlk_registry_sprites[MLK_REGISTRY_TEXTURE_NUMBERS].cellw; + cellh = mlk_registry_sprites[MLK_REGISTRY_TEXTURE_NUMBERS].cellh; mlk_painter_set_color(0x4f8fbaff); mlk_painter_clear(); @@ -117,7 +117,7 @@ .draw = draw }; - mlk_animation_init(&animation, ®istry_sprites[REGISTRY_TEXTURE_NUMBERS], 1000); + mlk_animation_init(&animation, &mlk_registry_sprites[MLK_REGISTRY_TEXTURE_NUMBERS], 1000); mlk_game_init(states, MLK_UTIL_SIZE(states)); mlk_game_push(&state);