diff options
author | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
---|---|---|
committer | Rafaël Carré <rafael.carre@gmail.com> | 2010-08-28 21:46:45 +0000 |
commit | ab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch) | |
tree | 4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/bench_mem_jpeg.c | |
parent | 8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff) | |
download | rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.gz rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.zip |
plugins: use lcd_putsf/lcd_putsxyf
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27926 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bench_mem_jpeg.c')
-rw-r--r-- | apps/plugins/bench_mem_jpeg.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/apps/plugins/bench_mem_jpeg.c b/apps/plugins/bench_mem_jpeg.c index 4e24f2a405..184eb0f1c8 100644 --- a/apps/plugins/bench_mem_jpeg.c +++ b/apps/plugins/bench_mem_jpeg.c | |||
@@ -54,14 +54,12 @@ const struct custom_format format_null = { | |||
54 | .get_size = get_size_null | 54 | .get_size = get_size_null |
55 | }; | 55 | }; |
56 | 56 | ||
57 | static char output_buf[256]; | ||
58 | static int output_y = 0; | 57 | static int output_y = 0; |
59 | static int font_h; | 58 | static int font_h; |
60 | 59 | ||
61 | #define lcd_printf(...) \ | 60 | #define lcd_printf(...) \ |
62 | do { \ | 61 | do { \ |
63 | rb->snprintf(output_buf, sizeof(output_buf), __VA_ARGS__); \ | 62 | rb->lcd_putsxyf(0, output_y, __VA_ARGS__); \ |
64 | rb->lcd_putsxy(0, output_y, output_buf); \ | ||
65 | rb->lcd_update_rect(0, output_y, LCD_WIDTH, font_h); \ | 63 | rb->lcd_update_rect(0, output_y, LCD_WIDTH, font_h); \ |
66 | output_y += font_h; \ | 64 | output_y += font_h; \ |
67 | } while (0) | 65 | } while (0) |