diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:54:19 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:54:19 +0000 |
commit | 73f27359c64286899c3dc62152c096db55ba8a88 (patch) | |
tree | ce8d9b9c617795fddc745fa66242a4651b6a69d8 /firmware/drivers/lcd-charcell.c | |
parent | ab9fd1840b8025336081bd72fb9dbaea7b9909dd (diff) |
fix r27921 : lcd_putsxyf() for charcell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27927 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/drivers/lcd-charcell.c')
-rw-r--r-- | firmware/drivers/lcd-charcell.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/firmware/drivers/lcd-charcell.c b/firmware/drivers/lcd-charcell.c index f928c19ecd..aa12ef16c0 100644 --- a/firmware/drivers/lcd-charcell.c +++ b/firmware/drivers/lcd-charcell.c @@ -449,6 +449,17 @@ void lcd_putsxy(int x, int y, const unsigned char *str) lcd_putsxyofs(x, y, 0, str); } +/* Formatting version of lcd_putsxy */ +void lcd_putsxyf(int x, int y, const unsigned char *fmt, ...) +{ + va_list ap; + char buf[256]; + va_start(ap, fmt); + vsnprintf(buf, sizeof (buf), fmt, ap); + va_end(ap); + lcd_putsxy(x, y, buf); +} + /*** Line oriented text output ***/ /* Put a string at a given char position */ |