From ab9fd1840b8025336081bd72fb9dbaea7b9909dd Mon Sep 17 00:00:00 2001 From: Rafaël Carré Date: Sat, 28 Aug 2010 21:46:45 +0000 Subject: plugins: use lcd_putsf/lcd_putsxyf git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bench_scaler.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'apps/plugins/bench_scaler.c') diff --git a/apps/plugins/bench_scaler.c b/apps/plugins/bench_scaler.c index 5db2987ec7..dc794e67f2 100644 --- a/apps/plugins/bench_scaler.c +++ b/apps/plugins/bench_scaler.c @@ -29,7 +29,6 @@ static unsigned char output; static int output_y = 0; static int font_h; static unsigned char *plugin_buf; -char output_buf[256]; struct img_part part; /* a null output plugin to save memory and better isolate scale cost */ @@ -77,8 +76,7 @@ const struct custom_format format_null = { #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) -- cgit v1.2.3