From 6700ad8f206d0beba92e22680504ae6ba2b7d74c Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 4 Feb 2005 12:41:09 +0000 Subject: adapted to build on iRiver git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5784 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/jpeg.c | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'apps/plugins/jpeg.c') diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index d760812..f705271 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -26,7 +26,15 @@ #ifndef SIMULATOR /* not for simulator by now */ #include "plugin.h" -#ifdef HAVE_LCD_BITMAP /* and also not for the Player */ +#if CONFIG_LCD == LCD_SSD1815 /* only for Recorder/Ondio displays */ +/* + FIX: + + This would be a lot nicer if it depended on HAVE_LCD_BITMAP only, but we + need to fix the grayscale lib for Gmini and iRiver. Either with true + grayscale or 1bit. + +*/ #include "gray.h" /* variable button definitions */ @@ -39,6 +47,10 @@ #define JPEG_ZOOM_IN (BUTTON_MENU | BUTTON_REL) #define JPEG_ZOOM_OUT (BUTTON_MENU | BUTTON_REPEAT) +#elif CONFIG_KEYPAD == IRIVER_H100_PAD +#define JPEG_ZOOM_IN BUTTON_ON +#define JPEG_ZOOM_OUT BUTTON_SELECT + #endif /******************************* Globals ***********************************/ -- cgit v1.1