summaryrefslogtreecommitdiffstats
path: root/apps/plugins/imageviewer/image_decoder.c
diff options
context:
space:
mode:
authorMarcin Bukat <marcin.bukat@gmail.com>2011-01-09 13:22:54 +0000
committerMarcin Bukat <marcin.bukat@gmail.com>2011-01-09 13:22:54 +0000
commit6e3da841be4f0c7eda5d0daec19fc4919bd56d9f (patch)
tree05c2b3628720bcf2fd6f181b25771a874628cb38 /apps/plugins/imageviewer/image_decoder.c
parent6d05e27d68ff6a65580e771bccb20e6139ef5d68 (diff)
downloadrockbox-6e3da841be4f0c7eda5d0daec19fc4919bd56d9f.tar.gz
rockbox-6e3da841be4f0c7eda5d0daec19fc4919bd56d9f.tar.bz2
rockbox-6e3da841be4f0c7eda5d0daec19fc4919bd56d9f.zip
Rework ppmviewer to fit our shiny new imageviewer framework. FS#11818 by me.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29012 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/imageviewer/image_decoder.c')
-rw-r--r--apps/plugins/imageviewer/image_decoder.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/imageviewer/image_decoder.c b/apps/plugins/imageviewer/image_decoder.c
index b4fa27e425..553632e559 100644
--- a/apps/plugins/imageviewer/image_decoder.c
+++ b/apps/plugins/imageviewer/image_decoder.c
@@ -27,6 +27,9 @@ static const char *decoder_names[MAX_IMAGE_TYPES] = {
"bmp",
"jpeg",
"png",
+#ifdef HAVE_LCD_COLOR
+ "ppm"
+#endif
};
/* check file type by extention */
@@ -41,6 +44,9 @@ enum image_type get_image_type(const char *name)
{ ".jpe", IMAGE_JPEG },
{ ".jpeg", IMAGE_JPEG },
{ ".png", IMAGE_PNG },
+#ifdef HAVE_LCD_COLOR
+ { ".ppm", IMAGE_PPM },
+#endif
};
const char *ext = rb->strrchr(name, '.');