summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Gjenero <dreamlayers@rockbox.org>2011-11-09 23:25:36 +0000
committerBoris Gjenero <dreamlayers@rockbox.org>2011-11-09 23:25:36 +0000
commitb882f8f4e3068413d82742fd737eec92b9c382a2 (patch)
treeb08a7e2631a9ff0d982aadcdab165546fa92cdaa
parent8412ced75fe9f9be8501239aa1fe77e696c03ebb (diff)
Set alpha_offset to zero when loading a JPEG.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30948 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/recorder/jpeg_load.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/recorder/jpeg_load.c b/apps/recorder/jpeg_load.c
index a02386f76f..46b7cc9bc5 100644
--- a/apps/recorder/jpeg_load.c
+++ b/apps/recorder/jpeg_load.c
@@ -2081,6 +2081,9 @@ int clip_jpeg_fd(int fd,
resize = true;
if (format & FORMAT_DITHER)
dither = true;
+#ifdef HAVE_LCD_COLOR
+ bm->alpha_offset = 0; /* no alpha channel */
+#endif
if (resize) {
struct dim resize_dim = {
.width = bm->width,