diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 18:03:21 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-06-26 20:00:27 +0200 |
| commit | 50b362db3998e4c17cd449dda939d416954bf1ba (patch) | |
| tree | 179f7eef689d113c5881683b74d40769481b1f52 /src | |
| parent | aea50395c5dbc5c49ad93384b0182d45d45c6441 (diff) | |
| download | jancity-50b362db3998e4c17cd449dda939d416954bf1ba.tar.gz | |
font: deprecate font_printf
This function is no longer needed since `gui` was revamped.
Diffstat (limited to 'src')
| -rw-r--r-- | src/font/inc/font.h | 1 | ||||
| -rw-r--r-- | src/font/src/font.c | 19 |
2 files changed, 0 insertions, 20 deletions
diff --git a/src/font/inc/font.h b/src/font/inc/font.h index 4e160c0..524355d 100644 --- a/src/font/inc/font.h +++ b/src/font/inc/font.h @@ -11,7 +11,6 @@ enum font 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 2e1b22c..765151b 100644 --- a/src/font/src/font.c +++ b/src/font/src/font.c @@ -64,25 +64,6 @@ static int renderstr(const enum font f, const short x, short y, const char *str) return 0; } -int font_printf(const enum font f, const short x, const short y, - const char *const fmt, ...) -{ - va_list ap; - - va_start(ap, fmt); - - char defstr[1024]; - const int sz = vsnprintf(defstr, sizeof defstr, fmt, ap); - - va_end(ap); - - if (sz < 0 || sz >= sizeof defstr - || renderstr(f, x, y, defstr)) - return -1; - - return sz; -} - int font_puts(const enum font f, const short x, const short y, const char *const str) { |
