1
0
Fork 0
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:
Rafaël Carré 2010-08-28 21:54:19 +00:00
parent ab9fd1840b
commit 73f27359c6

View file

@ -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 */