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/wavplay.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'apps/plugins/wavplay.c') diff --git a/apps/plugins/wavplay.c b/apps/plugins/wavplay.c index cbd4dfbeda..887c5cdd55 100644 --- a/apps/plugins/wavplay.c +++ b/apps/plugins/wavplay.c @@ -3454,7 +3454,6 @@ void cleanup(void *fd) int play_file(char* filename) { - char buf[32]; int button; int fd; int wanted, got; @@ -3540,11 +3539,9 @@ int play_file(char* filename) time = bytes / (samplerate * 2 * channels); rb->lcd_puts(0, 0, "Playing WAV file"); - rb->snprintf(buf, sizeof(buf), "%dHz %s", samplerate, + rb->lcd_putsf(0, 1, "%dHz %s", samplerate, (channels == 1) ? "mono" : "stereo"); - rb->lcd_puts(0, 1, buf); - rb->snprintf(buf, sizeof(buf), "Length: %d:%02d", time / 60, time % 60); - rb->lcd_puts(0, 2, buf); + rb->lcd_putsf(0, 2, "Length: %d:%02d", time / 60, time % 60); rb->lcd_update(); rb->sound_set_pitch(PITCH_SPEED_100); /* reset pitch */ -- cgit v1.2.3