summaryrefslogtreecommitdiffstats
path: root/apps/plugins/imageviewer/png
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/imageviewer/png
parent8418a2c94a97da1d6f42f21dc348aadd1e177d77 (diff)
downloadrockbox-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/imageviewer/png')
-rw-r--r--apps/plugins/imageviewer/png/png.c15
1 files changed, 4 insertions, 11 deletions
diff --git a/apps/plugins/imageviewer/png/png.c b/apps/plugins/imageviewer/png/png.c
index 8bd1b241f3..46430607ea 100644
--- a/apps/plugins/imageviewer/png/png.c
+++ b/apps/plugins/imageviewer/png/png.c
@@ -1359,8 +1359,7 @@ int load_image(char *filename, struct image_info *info,
} else {
if (!running_slideshow) {
- rb->snprintf(print, sizeof(print), "loading %lu bytes", (unsigned long)image_size);
- rb->lcd_puts(0, 1, print);
+ rb->lcd_putsf(0, 1, "loading %zu bytes", image_size);
rb->lcd_update();
}
@@ -1388,14 +1387,10 @@ int load_image(char *filename, struct image_info *info,
if (!decoder->error) {
if (!running_slideshow) {
- rb->snprintf(print, sizeof(print), "image %dx%d",
+ rb->lcd_putsf(0, 2, "image %dx%d",
decoder->infoPng.width, decoder->infoPng.height);
- rb->lcd_puts(0, 2, print);
- rb->lcd_update();
-
- rb->snprintf(print, sizeof(print), "decoding %d*%d",
+ rb->lcd_putsf(0, 3, "decoding %d*%d",
decoder->infoPng.width, decoder->infoPng.height);
- rb->lcd_puts(0, 3, print);
rb->lcd_update();
}
@@ -1481,9 +1476,7 @@ int get_image(struct image_info *info, int ds)
if (ds > 1) {
if (!running_slideshow)
{
- rb->snprintf(print, sizeof(print), "resizing %d*%d",
- info->width, info->height);
- rb->lcd_puts(0, 3, print);
+ rb->lcd_putsf(0, 3, "resizing %d*%d", info->width, info->height);
rb->lcd_update();
}
struct bitmap bmp_src, bmp_dst;