Mercurial > molko
diff libmlk-rpg/mlk/rpg/battle-indicator.c @ 472:bc5483849614
core: texture -> mlk_texture
author | David Demelier <markand@malikania.fr> |
---|---|
date | Mon, 27 Feb 2023 11:24:38 +0100 |
parents | 01f5580e43d1 |
children | d6757c30658e |
line wrap: on
line diff
--- a/libmlk-rpg/mlk/rpg/battle-indicator.c Mon Feb 27 11:18:52 2023 +0100 +++ b/libmlk-rpg/mlk/rpg/battle-indicator.c Mon Feb 27 11:24:38 2023 +0100 @@ -78,7 +78,7 @@ int battle_indicator_ok(const struct battle_indicator *bti) { - return bti && texture_ok(&bti->tex[0]) && texture_ok(&bti->tex[1]); + return bti && mlk_texture_ok(&bti->tex[0]) && mlk_texture_ok(&bti->tex[1]); } int @@ -100,13 +100,13 @@ 255 ); - texture_set_color_mod(&bti->tex[0], bti->cur); + mlk_texture_set_color_mod(&bti->tex[0], bti->cur); } else { /* Update alpha next. */ bti->alpha -= 10; - texture_set_alpha_mod(&bti->tex[0], bti->alpha); - texture_set_alpha_mod(&bti->tex[1], bti->alpha); + mlk_texture_set_alpha_mod(&bti->tex[0], bti->alpha); + mlk_texture_set_alpha_mod(&bti->tex[1], bti->alpha); } } @@ -118,8 +118,8 @@ { assert(battle_indicator_ok(bti)); - texture_draw(&bti->tex[1], x + 1, y + 1); - texture_draw(&bti->tex[0], x, y); + mlk_texture_draw(&bti->tex[1], x + 1, y + 1); + mlk_texture_draw(&bti->tex[0], x, y); } void @@ -127,8 +127,8 @@ { assert(bti); - texture_finish(&bti->tex[0]); - texture_finish(&bti->tex[1]); + mlk_texture_finish(&bti->tex[0]); + mlk_texture_finish(&bti->tex[1]); memset(bti, 0, sizeof (*bti)); }