forked from len0rd/rockbox
fix r27921 : lcd_putsxyf() for charcell
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27927 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
ab9fd1840b
commit
73f27359c6
1 changed files with 11 additions and 0 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue