Set alpha_offset to zero when loading a JPEG.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30948 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Boris Gjenero 2011-11-09 23:25:36 +00:00
parent 8412ced75f
commit b882f8f4e3

View file

@ -2081,6 +2081,9 @@ int clip_jpeg_fd(int fd,
resize = true; resize = true;
if (format & FORMAT_DITHER) if (format & FORMAT_DITHER)
dither = true; dither = true;
#ifdef HAVE_LCD_COLOR
bm->alpha_offset = 0; /* no alpha channel */
#endif
if (resize) { if (resize) {
struct dim resize_dim = { struct dim resize_dim = {
.width = bm->width, .width = bm->width,