summaryrefslogtreecommitdiff
path: root/apps/plugins/imageviewer/png
diff options
context:
space:
mode:
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,
1359 1359
1360 } else { 1360 } else {
1361 if (!running_slideshow) { 1361 if (!running_slideshow) {
1362 rb->snprintf(print, sizeof(print), "loading %lu bytes", (unsigned long)image_size); 1362 rb->lcd_putsf(0, 1, "loading %zu bytes", image_size);
1363 rb->lcd_puts(0, 1, print);
1364 rb->lcd_update(); 1363 rb->lcd_update();
1365 } 1364 }
1366 1365
@@ -1388,14 +1387,10 @@ int load_image(char *filename, struct image_info *info,
1388 if (!decoder->error) { 1387 if (!decoder->error) {
1389 1388
1390 if (!running_slideshow) { 1389 if (!running_slideshow) {
1391 rb->snprintf(print, sizeof(print), "image %dx%d", 1390 rb->lcd_putsf(0, 2, "image %dx%d",
1392 decoder->infoPng.width, decoder->infoPng.height); 1391 decoder->infoPng.width, decoder->infoPng.height);
1393 rb->lcd_puts(0, 2, print); 1392 rb->lcd_putsf(0, 3, "decoding %d*%d",
1394 rb->lcd_update();
1395
1396 rb->snprintf(print, sizeof(print), "decoding %d*%d",
1397 decoder->infoPng.width, decoder->infoPng.height); 1393 decoder->infoPng.width, decoder->infoPng.height);
1398 rb->lcd_puts(0, 3, print);
1399 rb->lcd_update(); 1394 rb->lcd_update();
1400 } 1395 }
1401 1396
@@ -1481,9 +1476,7 @@ int get_image(struct image_info *info, int ds)
1481 if (ds > 1) { 1476 if (ds > 1) {
1482 if (!running_slideshow) 1477 if (!running_slideshow)
1483 { 1478 {
1484 rb->snprintf(print, sizeof(print), "resizing %d*%d", 1479 rb->lcd_putsf(0, 3, "resizing %d*%d", info->width, info->height);
1485 info->width, info->height);
1486 rb->lcd_puts(0, 3, print);
1487 rb->lcd_update(); 1480 rb->lcd_update();
1488 } 1481 }
1489 struct bitmap bmp_src, bmp_dst; 1482 struct bitmap bmp_src, bmp_dst;