forked from len0rd/rockbox
Implement lcd(_remote)_putsxyf() and export to plugins
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27921 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
e78a12bca7
commit
0f063b7d72
5 changed files with 15 additions and 0 deletions
|
|
@ -219,6 +219,17 @@ void LCDFN(putsxy)(int x, int y, const unsigned char *str)
|
|||
LCDFN(putsxyofs)(x, y, 0, str);
|
||||
}
|
||||
|
||||
/* Formatting version of LCDFN(putsxy) */
|
||||
void LCDFN(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);
|
||||
LCDFN(putsxy)(x, y, buf);
|
||||
}
|
||||
|
||||
static void LCDFN(putsxyofs_style)(int xpos, int ypos,
|
||||
const unsigned char *str, int style,
|
||||
int w, int h, int offset)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue