diff options
| author | Jens Arnold <amiconn@rockbox.org> | 2006-08-02 00:22:01 +0000 |
|---|---|---|
| committer | Jens Arnold <amiconn@rockbox.org> | 2006-08-02 00:22:01 +0000 |
| commit | 628d20a6109bf65175e7c4b1bd9477cdccfd7437 (patch) | |
| tree | a5bdef444b5873a4d24421dcfaf4f94dedbec38c /apps/plugins/jpeg.c | |
| parent | 8cc73f152b510c946a0285ac010639ebd6668ebc (diff) | |
| download | rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.zip rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.tar.gz rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.tar.bz2 rockbox-628d20a6109bf65175e7c4b1bd9477cdccfd7437.tar.xz | |
Grayscale library: LCD linearisation and gamma correction.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10402 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/jpeg.c')
| -rw-r--r-- | apps/plugins/jpeg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/jpeg.c b/apps/plugins/jpeg.c index 890ee8e..5166f4e 100644 --- a/apps/plugins/jpeg.c +++ b/apps/plugins/jpeg.c @@ -2771,7 +2771,7 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) #ifdef USEGSLIB /* initialize the grayscale buffer: 32 bitplanes for 33 shades of gray. */ grayscales = gray_init(rb, buf, buf_size, false, LCD_WIDTH, LCD_HEIGHT/8, - 32, &graysize) + 1; + 32, 2<<8, &graysize) + 1; buf += graysize; buf_size -= graysize; if (grayscales < 33 || buf_size <= 0) |