add the long awaited push_9slice

This commit is contained in:
2024-10-02 14:18:07 -03:00
parent 452ecd72fe
commit dbbf6e25f0
3 changed files with 144 additions and 1 deletions

View File

@ -24,7 +24,7 @@ static void title_tick(State *state) {
char *text_str = cmalloc(text_str_len);
snprintf(text_str, text_str_len, "%lu", state->ctx->tick_count);
const char *font = "fonts/kenney-pixel.ttf";
const char *font = "/fonts/kenney-pixel.ttf";
int text_h = 32;
int text_w = text_get_width(text_str, text_h, font);