Mercurial > molko
diff libmlk-rpg/mlk/rpg/battle-indicator.c @ 495:2af25db99273
ui: theme -> mlk_theme
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 13:40:55 +0100 |
parents | d6757c30658e |
children | 52a305833381 |
line wrap: on
line diff
--- a/libmlk-rpg/mlk/rpg/battle-indicator.c Tue Feb 28 13:32:01 2023 +0100 +++ b/libmlk-rpg/mlk/rpg/battle-indicator.c Tue Feb 28 13:40:55 2023 +0100 @@ -29,7 +29,7 @@ #include "battle-indicator.h" -#define THEME(bti) ((bti)->theme ? (bti)->theme : theme_default()) +#define THEME(bti) ((bti)->theme ? (bti)->theme : mlk_theme_default()) #define STEP (2) #define DELAY (5) @@ -54,7 +54,7 @@ assert(bti); char buf[128]; - const struct theme *theme = THEME(bti); + const struct mlk_theme *theme = THEME(bti); int err; snprintf(buf, sizeof (buf), "%u", bti->amount); @@ -63,8 +63,8 @@ bti->elapsed = 0; bti->alpha = 250; - if ((err = mlk_font_render(theme->fonts[THEME_FONT_INTERFACE], &bti->tex[0], buf, bti->cur)) < 0 || - (err = mlk_font_render(theme->fonts[THEME_FONT_INTERFACE], &bti->tex[1], buf, 0x000000ff)) < 0) + if ((err = mlk_font_render(theme->fonts[MLK_THEME_FONT_INTERFACE], &bti->tex[0], buf, bti->cur)) < 0 || + (err = mlk_font_render(theme->fonts[MLK_THEME_FONT_INTERFACE], &bti->tex[1], buf, 0x000000ff)) < 0) mlk_panic(err); }