font: add font_puts

This commit is contained in:
Xavier Del Campo Romero 2022-06-26 17:51:04 +02:00
parent 2c5973ee7e
commit f17c76c400
2 changed files with 7 additions and 0 deletions

View File

@ -12,6 +12,7 @@ enum font
};
int font_printf(enum font f, short x, short y, const char *fmt, ...);
int font_puts(enum font, short x, short y, const char *s);
extern struct sprite font_sprite;

View File

@ -82,3 +82,9 @@ int font_printf(const enum font f, const short x, const short y,
return sz;
}
int font_puts(const enum font f, const short x, const short y,
const char *const str)
{
return renderstr(f, x, y, str) ? EOF : 0;
}