aboutsummaryrefslogtreecommitdiff
path: root/src/bootsplash.c
diff options
context:
space:
mode:
authorWayne Xia <xiawenc@linux.vnet.ibm.com>2011-07-08 11:03:16 +0800
committerKevin O'Connor <kevin@koconnor.net>2011-07-09 09:50:26 -0400
commit8031efa935657cd7957ec927a1c3e37519d3d5a0 (patch)
tree96e7b5d0e56edbc249057a7849e1aa7443e6fb90 /src/bootsplash.c
parent5042ca50f4dd808957d5550615e6c469147c9cf2 (diff)
downloadseabios-hppa-8031efa935657cd7957ec927a1c3e37519d3d5a0.zip
seabios-hppa-8031efa935657cd7957ec927a1c3e37519d3d5a0.tar.gz
seabios-hppa-8031efa935657cd7957ec927a1c3e37519d3d5a0.tar.bz2
Fix jpeg decoder problem when it is used in 24 BPP mode.
Signed-off-by: Wayne Xia <xiawenc@linux.vnet.ibm.com>
Diffstat (limited to 'src/bootsplash.c')
-rw-r--r--src/bootsplash.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bootsplash.c b/src/bootsplash.c
index 51f4f4f..9c33b80 100644
--- a/src/bootsplash.c
+++ b/src/bootsplash.c
@@ -256,7 +256,8 @@ enable_bootsplash(void)
if (type == 0) {
dprintf(5, "Decompressing bootsplash.jpg\n");
- ret = jpeg_show(jpeg, picture, width, height, depth);
+ ret = jpeg_show(jpeg, picture, width, height, depth,
+ mode_info->bytes_per_scanline);
if (ret) {
dprintf(1, "jpeg_show failed with return code %d...\n", ret);
goto done;