diff options
Diffstat (limited to 'firmware/drivers/lcd-bitmap-common.c')
-rw-r--r-- | firmware/drivers/lcd-bitmap-common.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-bitmap-common.c b/firmware/drivers/lcd-bitmap-common.c index fba09cf06b..9f1d5fef68 100644 --- a/firmware/drivers/lcd-bitmap-common.c +++ b/firmware/drivers/lcd-bitmap-common.c | |||
@@ -219,6 +219,17 @@ void LCDFN(putsxy)(int x, int y, const unsigned char *str) | |||
219 | LCDFN(putsxyofs)(x, y, 0, str); | 219 | LCDFN(putsxyofs)(x, y, 0, str); |
220 | } | 220 | } |
221 | 221 | ||
222 | /* Formatting version of LCDFN(putsxy) */ | ||
223 | void LCDFN(putsxyf)(int x, int y, const unsigned char *fmt, ...) | ||
224 | { | ||
225 | va_list ap; | ||
226 | char buf[256]; | ||
227 | va_start(ap, fmt); | ||
228 | vsnprintf(buf, sizeof (buf), fmt, ap); | ||
229 | va_end(ap); | ||
230 | LCDFN(putsxy)(x, y, buf); | ||
231 | } | ||
232 | |||
222 | static void LCDFN(putsxyofs_style)(int xpos, int ypos, | 233 | static void LCDFN(putsxyofs_style)(int xpos, int ypos, |
223 | const unsigned char *str, int style, | 234 | const unsigned char *str, int style, |
224 | int w, int h, int offset) | 235 | int w, int h, int offset) |