summaryrefslogtreecommitdiff
path: root/apps/plugins/jpeg.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/jpeg.c')
-rw-r--r--apps/plugins/jpeg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c
index 1aac438e51..f9dcf2a63d 100644
--- a/apps/plugins/jpeg.c
+++ b/apps/plugins/jpeg.c
@@ -1822,8 +1822,8 @@ int main(char* filename)
1822 1822
1823 1823
1824 /* initialize the grayscale buffer: 32 bitplanes for 33 shades of gray. */ 1824 /* initialize the grayscale buffer: 32 bitplanes for 33 shades of gray. */
1825 grayscales = gray_init(rb, buf, buf_size, false, LCD_WIDTH, 1825 grayscales = gray_init(rb, buf, buf_size, false, LCD_WIDTH, LCD_HEIGHT/8,
1826 (LCD_HEIGHT*LCD_DEPTH/8), 32, &graysize) + 1; 1826 32, &graysize) + 1;
1827 buf += graysize; 1827 buf += graysize;
1828 buf_size -= graysize; 1828 buf_size -= graysize;
1829 if (grayscales < 33 || buf_size <= 0) 1829 if (grayscales < 33 || buf_size <= 0)