提交 e7107cee 编写于 作者: A anthony

7173145: Improve in-memory representation of splashscreens

Reviewed-by: bae, mschoene
上级 2b6fb22c
...@@ -133,6 +133,10 @@ SplashDecodeJpeg(Splash * splash, struct jpeg_decompress_struct *cinfo) ...@@ -133,6 +133,10 @@ SplashDecodeJpeg(Splash * splash, struct jpeg_decompress_struct *cinfo)
ImageFormat srcFormat; ImageFormat srcFormat;
jpeg_read_header(cinfo, TRUE); jpeg_read_header(cinfo, TRUE);
// SplashScreen jpeg converter expects data in RGB format only
cinfo->out_color_space = JCS_RGB;
jpeg_start_decompress(cinfo); jpeg_start_decompress(cinfo);
SplashCleanup(splash); SplashCleanup(splash);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册