summaryrefslogtreecommitdiffstats
path: root/apps/plugins/greyscale.c
diff options
context:
space:
mode:
authorRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
committerRafaël Carré <rafael.carre@gmail.com>2010-08-28 21:46:45 +0000
commitab9fd1840b8025336081bd72fb9dbaea7b9909dd (patch)
tree4c410bffcf1a9de2ce55a59bef45e3ecfa183a62 /apps/plugins/greyscale.c
parent8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff)
downloadrockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.gz
rockbox-ab9fd1840b8025336081bd72fb9dbaea7b9909dd.tar.bz2
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/greyscale.c')
-rw-r--r--apps/plugins/greyscale.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/apps/plugins/greyscale.c b/apps/plugins/greyscale.c
index 33254439b6..00699715f7 100644
--- a/apps/plugins/greyscale.c
+++ b/apps/plugins/greyscale.c
@@ -120,7 +120,6 @@
/******************************* Globals ***********************************/
GREY_INFO_STRUCT
-static char pbuf[32]; /* global printf buffer */
static unsigned char *gbuf;
static size_t gbuf_size = 0;
@@ -298,9 +297,7 @@ int main(void)
time = *rb->current_tick - time; /* end time measurement */
- rb->snprintf(pbuf, sizeof(pbuf), "Shades: 129, %d.%02ds",
- time / 100, time % 100);
- rb->lcd_puts(0, 0, pbuf);
+ rb->lcd_putsf(0, 0, "Shades: 129, %d.%02ds", time / 100, time % 100);
grey_deferred_lcd_update(); /* schedule an lcd_update() */
#ifdef HAVE_ADJUSTABLE_CPU_FREQ
rb->cpu_boost(false);