summaryrefslogtreecommitdiff
path: root/firmware/drivers/lcd-charcell.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:54:19 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:54:19 +0000
commit73f27359c64286899c3dc62152c096db55ba8a88 (patch)
treece8d9b9c617795fddc745fa66242a4651b6a69d8 /firmware/drivers/lcd-charcell.c
parentab9fd1840b8025336081bd72fb9dbaea7b9909dd (diff)
downloadrockbox-73f27359c64286899c3dc62152c096db55ba8a88.tar.gz
rockbox-73f27359c64286899c3dc62152c096db55ba8a88.zip
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.c11
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)
449 lcd_putsxyofs(x, y, 0, str); 449 lcd_putsxyofs(x, y, 0, str);
450} 450}
451 451
452/* Formatting version of lcd_putsxy */
453void lcd_putsxyf(int x, int y, const unsigned char *fmt, ...)
454{
455 va_list ap;
456 char buf[256];
457 va_start(ap, fmt);
458 vsnprintf(buf, sizeof (buf), fmt, ap);
459 va_end(ap);
460 lcd_putsxy(x, y, buf);
461}
462
452/*** Line oriented text output ***/ 463/*** Line oriented text output ***/
453 464
454/* Put a string at a given char position */ 465/* Put a string at a given char position */