font: add font_puts
This commit is contained in:
parent
2c5973ee7e
commit
f17c76c400
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue