diff options
Diffstat (limited to 'apps/plugins/bench_scaler.c')
-rw-r--r-- | apps/plugins/bench_scaler.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; | |||
29 | static int output_y = 0; | 29 | static int output_y = 0; |
30 | static int font_h; | 30 | static int font_h; |
31 | static unsigned char *plugin_buf; | 31 | static unsigned char *plugin_buf; |
32 | char output_buf[256]; | ||
33 | struct img_part part; | 32 | struct img_part part; |
34 | 33 | ||
35 | /* a null output plugin to save memory and better isolate scale cost */ | 34 | /* a null output plugin to save memory and better isolate scale cost */ |
@@ -77,8 +76,7 @@ const struct custom_format format_null = { | |||
77 | 76 | ||
78 | #define lcd_printf(...) \ | 77 | #define lcd_printf(...) \ |
79 | do { \ | 78 | do { \ |
80 | rb->snprintf(output_buf, sizeof(output_buf), __VA_ARGS__); \ | 79 | rb->lcd_putsxyf(0, output_y, __VA_ARGS__); \ |
81 | rb->lcd_putsxy(0, output_y, output_buf); \ | ||
82 | rb->lcd_update_rect(0, output_y, LCD_WIDTH, font_h); \ | 80 | rb->lcd_update_rect(0, output_y, LCD_WIDTH, font_h); \ |
83 | output_y += font_h; \ | 81 | output_y += font_h; \ |
84 | } while (0) | 82 | } while (0) |