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:
parent
8412ced75f
commit
b882f8f4e3
1 changed files with 3 additions and 0 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue