1
0
Fork 0
forked from len0rd/rockbox

plugins: use lcd_putsf/lcd_putsxyf

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Rafaël Carré 2010-08-28 21:46:45 +00:00
parent 8418a2c94a
commit ab9fd1840b
52 changed files with 173 additions and 412 deletions

View file

@ -54,14 +54,12 @@ const struct custom_format format_null = {
.get_size = get_size_null
};
static char output_buf[256];
static int output_y = 0;
static int font_h;
#define lcd_printf(...) \
do { \
rb->snprintf(output_buf, sizeof(output_buf), __VA_ARGS__); \
rb->lcd_putsxy(0, output_y, output_buf); \
rb->lcd_putsxyf(0, output_y, __VA_ARGS__); \
rb->lcd_update_rect(0, output_y, LCD_WIDTH, font_h); \
output_y += font_h; \
} while (0)