diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 17:51:04 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 20:00:27 +0200 |
| commit | aa047f3b95ba4d9074ecadf5227d454cd1e7e7fa (patch) | |
| tree | c00602725323ea0307f57183a15db3bbfd81ab41 /src/font | |
| parent | fe7e006a310911112bb17a7d9e7671226f1cd397 (diff) | |
| download | jancity-aa047f3b95ba4d9074ecadf5227d454cd1e7e7fa.tar.gz | |
font: add font_puts
Diffstat (limited to 'src/font')
| -rw-r--r-- | src/font/inc/font.h | 1 | ||||
| -rw-r--r-- | src/font/src/font.c | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/font/inc/font.h b/src/font/inc/font.h index 2d8bd2f..4e160c0 100644 --- a/src/font/inc/font.h +++ b/src/font/inc/font.h @@ -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; diff --git a/src/font/src/font.c b/src/font/src/font.c index 990a7b2..2e1b22c 100644 --- a/src/font/src/font.c +++ b/src/font/src/font.c @@ -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; +} |
